Fixes issue #10857 ("Tags have extra space at the bottom when they should be centered") (#10861)

* Fix for #10857 centered category tag text

* Fixes #10857 and #10856 display tag markdown.
This commit is contained in:
Nathan Zimmerman
2018-11-26 01:44:41 -08:00
committed by Matteo Pagliazzi
parent 6181328ac1
commit 2bebaf2cf8
2 changed files with 15 additions and 5 deletions

View File

@@ -94,7 +94,7 @@
.tags-popover
.d-flex.align-items-center.tags-container
.tags-popover-title(v-once) {{ `${$t('tags')}:` }}
.tag-label(v-for="tag in getTagsFor(task)") {{tag}}
.tag-label(v-for="tag in getTagsFor(task)", v-markdown="tag")
// Habits right side control
.right-control.d-flex.align-items-center.justify-content-center(v-if="task.type === 'habit'", :class="controlClass.down.bg")
@@ -490,6 +490,11 @@
white-space: nowrap;
margin-top: 3px;
margin-bottom: 3px;
// Applies to v-markdown generated p tag.
p {
margin-bottom: 0px;
}
}
}
</style>