From e74a598aebbba88ceadd64a2b3e320133170ca38 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 9 Aug 2014 20:50:28 +0100 Subject: [PATCH] Better organisation for the tag image dropdown --- core/ui/TagManager.tid | 20 +++++++++++++++----- themes/tiddlywiki/vanilla/base.tid | 1 + 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/core/ui/TagManager.tid b/core/ui/TagManager.tid index 28457d0ab..9bc7a1ea1 100644 --- a/core/ui/TagManager.tid +++ b/core/ui/TagManager.tid @@ -1,17 +1,27 @@ title: $:/TagManager \define lingo-base() $:/language/TagManager/ +\define iconEditorTab(type) +<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]"> +<$link to={{!!title}}> +<$transclude/> <$view field="title"/> + + +\end \define iconEditor(title)
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}} <$reveal state=<> type="popup" position="belowleft" text="" default="">
<$linkcatcher to="$title$!!icon"> -<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]]"> -<$link to={{!!title}}> -<$transclude/> <$view field="title"/> - - +
+Images +
+<> +
+System Images +
+<>
diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 6732b9162..a6720403e 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -952,6 +952,7 @@ canvas.tw-edit-bitmapeditor { padding: 4px 14px 4px 14px; } +.tw-drop-down .tw-dropdown-item, .tw-block-dropdown .tw-dropdown-item { padding: 4px 14px 4px 7px; color: <>;