Add icon previews to tag manager

This commit is contained in:
Jermolene 2014-08-09 13:12:23 +01:00
parent ba0accf4f5
commit f6d7d87a3d
2 changed files with 10 additions and 6 deletions

View File

@ -2,18 +2,18 @@ title: $:/TagManager
\define lingo-base() $:/language/TagManager/
\define iconEditor(title)
<div class="tw-drop-down-wrapper">
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button>
<div class="tw-block-dropdown-wrapper">
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="nomatch" text="" default="">
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
<div class="tw-drop-down">
<$linkcatcher to="$title$!!icon">
<div class="tw-block-dropdown tw-edit-type-dropdown">
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] +[sort[title]]">
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]]">
<$link to={{!!title}}>
<$view field="title"/>
<$transclude/> <$view field="title"/>
</$link>
</$list>
</div>
</$linkcatcher>
</div>
</$reveal>
</div>
\end

View File

@ -855,6 +855,10 @@ canvas.tw-edit-bitmapeditor {
fill: <<colour muted-foreground>>;
}
.tw-drop-down-wrapper {
position: relative;
}
.tw-drop-down {
min-width: 280px;
border: 1px solid <<colour dropdown-border>>;