From 6c8ac1ed473f12ff97bd14a9dd09e388a9157161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 4 Sep 2019 18:33:43 +0200 Subject: [PATCH] Fix tag style in card sidebar and remove flex basis on card labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 19 ++++++++++++++++++- src/components/cards/CardItem.vue | 6 +++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 68f4e6d34..e32dde4c1 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -36,7 +36,10 @@ :taggable="true" label="title" track-by="id" @select="addLabelToCard" @remove="removeLabelFromCard"> + @@ -93,6 +96,7 @@ import VueEasymde from 'vue-easymde' import { Actions } from 'nextcloud-vue/dist/Components/Actions' import { ActionButton } from 'nextcloud-vue/dist/Components/ActionButton' import ActivityEntry from '../ActivityEntry' +import Color from '../../mixins/color' export default { name: 'CardSidebar', @@ -107,6 +111,9 @@ export default { ActionButton, Avatar }, + mixins: [ + Color + ], props: { id: { type: Number, @@ -319,6 +326,16 @@ export default { } } + .tag { + flex-grow: 0; + flex-shrink: 1; + overflow: hidden; + padding: 1px 3px; + border-radius: 3px; + font-size: 85%; + margin-right: 3px; + } + .avatarLabel { padding: 6px } diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index c00db438f..8012b1901 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -189,10 +189,10 @@ export default { display: flex; flex-direction: row; margin-left: $card-padding; + margin-right: $card-padding; margin-top: -5px; li { - flex-basis: 5em; flex-grow: 0; flex-shrink: 1; display: flex; @@ -204,6 +204,10 @@ export default { margin-right: 3px; margin-bottom: 3px; + &:hover { + overflow: unset; + } + span { flex-grow: 0; flex-shrink: 1;