From 17b1598c5a5a375e6eaa0763767368c05ba0f56e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 30 Jan 2020 22:58:27 +0100 Subject: viewer: Improved the proposition layout --- viewer/src/components/LdProposition.vue | 36 ++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'viewer/src/components/LdProposition.vue') diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index f653e4d..02f7fe4 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue @@ -19,12 +19,18 @@ @@ -72,7 +78,7 @@ export default class LdTagInput extends Vue { const node = this.$galleryStore.tags[rawTag]; const search: Tag.Search = { ...node, operation, display: `${operation}${node.tag}` }; this.$uiStore.currentTags.push(search); - this.$uiStore.mode = "search"; + setTimeout(() => this.$uiStore.setModeSearch()); // Give time for the UI to display the Tag change } } @@ -82,12 +88,18 @@ export default class LdTagInput extends Vue { .proposition { display: flex; - justify-content: space-between; align-items: center; - margin: 10px; - cursor: pointer; -} -.proposition span { - padding: 0 10px; + padding-right: 7px; + .operation-tag { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + flex-grow: 1; + cursor: pointer; + } + .operation-btns { + padding: 2px 7px; + cursor: pointer; + } } -- cgit v1.2.3