From e41511c6523d58b3fce92b2cc55a6a2b87c6f9cd Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Tue, 17 Jan 2023 15:57:49 +0100 Subject: [PATCH] make core/ui/MoreSideBar/Tags look nice in the story river (#7212) --- core/ui/MoreSideBar/Tags.tid | 27 +++++++++------------------ core/ui/UntaggedTemplate.tid | 8 +++----- themes/tiddlywiki/vanilla/base.tid | 11 ++++++++--- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/core/ui/MoreSideBar/Tags.tid b/core/ui/MoreSideBar/Tags.tid index 6eeb010be..0a4727bc3 100644 --- a/core/ui/MoreSideBar/Tags.tid +++ b/core/ui/MoreSideBar/Tags.tid @@ -2,26 +2,17 @@ title: $:/core/ui/MoreSideBar/Tags tags: $:/tags/MoreSideBar caption: {{$:/language/SideBar/Tags/Caption}} -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value=""> - -{{$:/core/ui/Buttons/tag-manager}} - - - - - - +\whitespace trim +<$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class=""> +
+ {{$:/core/ui/Buttons/tag-manager}} +
+ <$list filter={{$:/core/Filters/AllTags!!filter}}> - -<$transclude tiddler="$:/core/ui/TagTemplate"/> - +
+ <$transclude tiddler="$:/core/ui/TagTemplate"/> +
-
- {{$:/core/ui/UntaggedTemplate}} diff --git a/core/ui/UntaggedTemplate.tid b/core/ui/UntaggedTemplate.tid index 95ebcd695..d5cd97006 100644 --- a/core/ui/UntaggedTemplate.tid +++ b/core/ui/UntaggedTemplate.tid @@ -3,10 +3,8 @@ title: $:/core/ui/UntaggedTemplate \define lingo-base() $:/language/SideBar/ \whitespace trim <$button popup=<> class="tc-btn-invisible tc-untagged-label tc-tag-label"> -<> + <> -<$reveal state=<> type="popup" position="below"> -
-<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" template="$:/core/ui/ListItemTemplate"/> -
+<$reveal class="tc-drop-down" tag="div" state=<> type="popup" position="below"> + <$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" template="$:/core/ui/ListItemTemplate"/> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index baf195107..027541cc7 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -814,9 +814,6 @@ button.tc-tag-label, span.tc-tag-label { } .tc-untagged-separator { - width: 10em; - left: 0; - margin-left: 0; border: 0; height: 1px; background: <>; @@ -3137,6 +3134,8 @@ select { ** Other utility classes */ +/* Horizontal gaps */ + .tc-tiny-gap { margin-left: .25em; margin-right: .25em; @@ -3179,3 +3178,9 @@ select { .tc-word-break { word-break: break-all; } + +/* Vertical gaps */ + +.tc-tiny-v-gap-bottom { + margin-bottom: 3px; +} \ No newline at end of file