Skip to content

Commit

Permalink
New component embed gif
Browse files Browse the repository at this point in the history
  • Loading branch information
ilse-langnar committed Aug 1, 2022
1 parent 622ef8a commit 7ca9da2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Binary file modified docs/feature-component-embed.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions javascript/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ code {
background-color: var( --secondary-background-color );
padding: var( --padding );
border-radius: var( --border-radius );
max-height: 400px;
overflow: auto;
margin-left: 50px;
width: 90%;
box-shadow:0 4px 6px rgba(0,0,0,0.1);
padding: var( --padding );
}
/*========Markdown========*/
Expand Down
12 changes: 10 additions & 2 deletions javascript/web/src/components/Kanban.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
.loop( v-for="( item, index ) in boards" :key="index" @dragenter.prevent @dragover.prevent )
.card( v-for="( card, card_index ) in item.cards" :key=" 'card-' + card_index" draggable @dragenter.prevent @dragover.prevent @drop.prevent="on_drop($event, card, item)" style="height: auto; " )
input.input.centered( v-if="card_index === 0" v-model="item.name" )

img.is-pulled-right( v-if="card_index === 0" src="@/assets/images/point.svg")
input.input( v-model="card.tagless" @blur="on_input_blur(card)" @keydown.enter="on_input_enter(card)" )
input.input( v-model="item.new_card" placeholder="Add a card ..." @keydown.enter="add_card(item, item.new_card)" )

Note( :note="card" :options="{ 'is_tagless': true, 'hideBullet': true, style: 'padding: 4px; font-size: 14px;' }" )

// input.input( v-if="card_index === item.cards.length - 1" v-model="item.new_card" placeholder="Add a card ..." @keydown.enter="add_card(item, item.new_card)" )
input.input.card( v-model="item.new_card" placeholder="Add a card ..." @keydown.enter="add_card(item, item.new_card)" style="width: 95%;" )
br


Expand Down Expand Up @@ -198,6 +202,9 @@ export default {
</script>
<style scoped>
.kanban {
}
.kanban .wrapper {
display: flex;
flex-direction: row;
Expand All @@ -216,6 +223,7 @@ export default {
margin-top: 1px;
border-radius: var( --border-radius );
box-shadow: #485361 0px 5px 15px;
height: fit-content;
}
.kanban .wrapper .loop input {
Expand Down
2 changes: 1 addition & 1 deletion javascript/web/src/components/Note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// show mode
.markdown( v-show="!inote.is_editable" v-html="get_html(options.is_tagless ? inote.tagless : inote.content )" @click="on_focus($event, inote)" :id="inote.id" @drop.prevent="add_file" @dragover.prevent )

Component.component-embed( v-if="get_component()" :component="get_component()" style="display: block; overflow: hidden; margin-left: 50px; width: 90%; box-shadow:0 4px 6px rgba(0,0,0,0.1); padding: var( --padding ); " )
Component.component-embed( v-if="get_component()" :component="get_component()" )

</template>
<script>
Expand Down

0 comments on commit 7ca9da2

Please sign in to comment.