diff --git a/core/wiki/macros/image-picker.tid b/core/wiki/macros/image-picker.tid index 68bbba34d..339c68001 100644 --- a/core/wiki/macros/image-picker.tid +++ b/core/wiki/macros/image-picker.tid @@ -3,24 +3,31 @@ tags: $:/tags/Macro \define image-picker-inner(actions) <$button tag="a" tooltip="""$(imageTitle)$"""> - $actions$ - <$transclude tiddler=<>/> - \end \define image-picker(actions,subfilter:"")
- <$list filter="[all[shadows+tiddlers]is[image]$subfilter$!has[draft.of]] -[type[application/pdf]] +[sort[title]]" variable="imageTitle"> - <$macrocall $name="image-picker-inner" actions="""$actions$"""/> - -
- \end +\define image-picker-dropdown(image-tiddler,fallback,actions) +
+<$button popup=<> class="tc-btn-invisible"> +<$transclude tiddler="""$image-tiddler$"""> +$fallback$ + + +
+<$reveal state=<> type="nomatch" text="" default=""> +
+<$macrocall $name="image-picker" actions="""$actions$"""/> +
+ +
+\end