From 2deed528bc6476a4a20c496d4cf3e8d7a777dee8 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Thu, 7 Nov 2019 13:39:14 +0100 Subject: [PATCH] Remove   from tag pill in edit mode (#4366) * remove   from tag pill in edit mode PR: fix missing space between edittemplate tags #3585 introduced an unbreakable space ... The ` ` isn't needed and **causes problems**, if users copy&paste the tag text, because the "new" tag in the text input field now contains an space in front of the tag. This space invalidates the tag, so it doesn't function anymore. see [comment in GG](https://groups.google.com/d/msg/tiddlywiki/RQEyqPQIZSM/uaU7lgJJAAAJ) .. I also had a problem like this some time ago, which costed me several hours of debugging. * Update base.tid * Update tag.tid --- core/ui/EditTemplate/tags.tid | 2 +- core/wiki/macros/tag.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/ui/EditTemplate/tags.tid b/core/ui/EditTemplate/tags.tid index 665516b7b..8ab36bf0d 100644 --- a/core/ui/EditTemplate/tags.tid +++ b/core/ui/EditTemplate/tags.tid @@ -15,7 +15,7 @@ color:$(foregroundColor)$; \whitespace trim <$vars foregroundColor=<> backgroundColor="""$colour$"""> > class="tc-tag-label tc-tag-list-item"> -<$transclude tiddler="""$icon$"""/> <$view field="title" format="text" /> +<$transclude tiddler="""$icon$"""/><$view field="title" format="text" /> <$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}} diff --git a/core/wiki/macros/tag.tid b/core/wiki/macros/tag.tid index aa0934072..131d62cb4 100644 --- a/core/wiki/macros/tag.tid +++ b/core/wiki/macros/tag.tid @@ -10,7 +10,7 @@ color:$(foregroundColor)$; \define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions) <$vars foregroundColor=<> backgroundColor="""$colour$"""> <$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<>> -$actions$<$transclude tiddler="""$icon$"""/> <$view tiddler=<<__tag__>> field="title" format="text" /> +$actions$<$transclude tiddler="""$icon$"""/><$view tiddler=<<__tag__>> field="title" format="text" /> \end diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index d747f7073..221800ffd 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -672,6 +672,8 @@ button.tc-untagged-label { .tc-tag-label svg, .tc-tag-label img { height: 1em; width: 1em; + margin-right: 3px; + margin-bottom: 1px; vertical-align: text-bottom; }