From ce832d84192bfad70a6f4df749991a3cdc952279 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Thu, 31 Oct 2024 07:18:44 +0100 Subject: [PATCH] use is tiddler --- core/wiki/macros/sidebar-resizer.tid | 10 +++++----- themes/tiddlywiki/vanilla/sidebar-resizer.tid | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index b694edc09..abb9ca950 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -258,7 +258,7 @@ title: $:/core/procedures/sidebar-resizer \end \procedure sidebar-resizer-pointermove-actions() -<%if [!is[missing]] %> +<%if [is[tiddler]] %> <$let startPosX={{{ [get[start-posx]] }}} widgetNodeWidth={{{ [get[widget-node-width]] }}} @@ -287,9 +287,9 @@ title: $:/core/procedures/sidebar-resizer <% endif %> \end -\function get.resizer.class() tc-sidebar-resizer [!is[missing]then[tc-resizer-active]] [] [addsuffix[-]addsuffixsha256[]addprefix[tc-sidebar-resizer-]] +[join[ ]] +\function get.resizer.class() tc-sidebar-resizer [is[tiddler]then[tc-resizer-active]] [] [addsuffix[-]addsuffixsha256[]addprefix[tc-sidebar-resizer-]] +[join[ ]] -\function get.active.class(class) [] [] [] [!is[missing]then[tc-resizer-active]] +[join[ ]] +\function get.active.class(class) [] [] [] [is[tiddler]then[tc-resizer-active]] +[join[ ]] \function get.sidebar-resizer.pointerdown.actions() [match[$:/state/sidebar/resizing]then] @@ -320,7 +320,7 @@ title: $:/core/procedures/sidebar-resizer class=<> selector=".tc-sidebar-resizer" matchSelector=".tc-sidebar-resizer" - $pointerup={{{ [!is[missing]then] }}}> + $pointerup={{{ [is[tiddler]then] }}}> <$eventcatcher tag="div" @@ -429,7 +429,7 @@ title: $:/core/procedures/sidebar-resizer class=<> selector=".tc-sidebar-resizer" matchSelector=".tc-sidebar-resizer" - $pointerup={{{ [!is[missing]then] }}}> + $pointerup={{{ [is[tiddler]then] }}}> <$eventcatcher tag="div" diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 7891d22ac..1859e5f69 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -94,7 +94,7 @@ code-body: yes opacity: 0.6; } - <%if [[$:/state/sidebar/resizing]!is[missing]] %> + <%if [[$:/state/sidebar/resizing]is[tiddler]] %> @media (pointer: coarse) {