From 836087177db03ab6b4f8471f12b6176447138bf4 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Tue, 8 Oct 2024 07:48:47 +0200 Subject: [PATCH] make tiddlerwidth percentages work --- core/wiki/macros/sidebar-resizer.tid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index 0e6c926dc..57e57b201 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -69,7 +69,6 @@ title: $:/core/macros/sidebar-resizer innerStoryWidth={{{ [subtract[84]] }}} innerStoryWidthStart={{{ [subtract[84]] }}} storyLeft={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] }}} - storyWidthAddLeft={{{ [add] }}} storyMinWidthAddLeft={{{ [add] }}} sidebarMinWidth={{{ [convert.to.pixels{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}] }}} storyRiverLimit={{{ [subtract] }}} @@ -93,7 +92,7 @@ title: $:/core/macros/sidebar-resizer storyWidthResult={{{ [compare:number:ltthenaddsuffix] ~[compare:number:gteqthenaddsuffix] ~[addsuffix] }}} - tiddlerWidthResult={{{ [compare:number:ltthenaddsuffix] ~[compare:number:gteqthenaddsuffix] ~[addsuffix] }}}> + tiddlerWidthResult={{{ [match[%]thencompare:number:ltthen{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}] ~[match[%]thencompare:number:gteqthen{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}] ~[!match[%]thencompare:number:ltthenaddsuffix] ~[!match[%]thencompare:number:gteqthenaddsuffix] ~[addsuffix] }}}> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth" text=<>/> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth" text=<>/>