From 3c4d7c5506a8c540ce77bacb7ad39dd09f75bd75 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 6 Oct 2024 12:00:22 +0200 Subject: [PATCH] fix problem with double px suffixes --- core/wiki/macros/sidebar-resizer.tid | 2 +- .../$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index bcf604480..66a1472ff 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -72,7 +72,7 @@ title: $:/core/macros/sidebar-resizer \end \procedure set-sidebarwidth-actions() -<$let sidebarWidthMetric={{$:/state/sidebar/resizing!!sidebar-width-metric}} sidebarMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}addsuffix] }}} storyLeftConverted={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] }}} storyMinWidthConverted={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}] }}} sidebarMaxWidth={{{ [subtractsubtractaddsuffix[px]] }}}> +<$let sidebarWidthMetric={{$:/state/sidebar/resizing!!sidebar-width-metric}} sidebarMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}] }}} storyLeftConverted={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] }}} storyMinWidthConverted={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}] }}} sidebarMaxWidth={{{ [subtractsubtract] }}}> <$vars sidebarWidthConverted={{{ [function[convert.to.result],,] }}} sidebarMaxWidthConverted={{{ [function[convert.to.result],,] }}} sidebarMinWidthConverted={{{ [function[convert.to.result],,] }}}> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth" text={{{ [compare:number:gteqthenaddsuffix] [compare:number:ltthenaddsuffix] ~[addsuffix] }}}/> diff --git a/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid b/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid new file mode 100644 index 000000000..c1398e45d --- /dev/null +++ b/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid @@ -0,0 +1,6 @@ +created: 20241006095122581 +modified: 20241006095134090 +title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth +type: text/vnd.tiddlywiki + +724px \ No newline at end of file