Tags edittemplate: replace × with svg (#3859)

* tags edittemplate: replace × with close-button svg

* make close-button smaller + v-aligned middle
fix-syncer
Simon Huber 2019-06-26 13:34:18 +02:00 zatwierdzone przez Jeremy Ruston
rodzic 448d108d69
commit 31b141097d
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ color:$(foregroundColor)$;
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
<span style=<<tag-styles>> class="tc-tag-label tc-tag-list-item">
<$transclude tiddler="""$icon$"""/>&nbsp;<$view field="title" format="text" />
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">&times;</$button>
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}}</$button>
</span>
</$vars>
\end

Wyświetl plik

@ -662,6 +662,11 @@ button.tc-untagged-label {
vertical-align: text-bottom;
}
.tc-edit-tags button.tc-remove-tag-button svg {
font-size: 0.7em;
vertical-align: middle;
}
.tc-tag-manager-table .tc-tag-label {
white-space: normal;
}