From 0a3dd8ba96fa215950fd347067fd0cf76ee94dee Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Wed, 9 Oct 2024 07:56:33 +0200 Subject: [PATCH] tiddlerwidth is clamped in certain cases --- core/wiki/macros/sidebar-resizer.tid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index e4a8b5326..ba9ee6d8e 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -79,7 +79,8 @@ title: $:/core/macros/sidebar-resizer tiddlerWidthMetric={{$:/state/sidebar/resizing!!tiddler-width-metric}} tiddlerWidthStart={{$:/state/sidebar/resizing!!start-tiddler-width}} tiddlerWidthStartPixels={{{ [match[%]thenmultiplydivide[100]] ~[convert.to.pixels] }}} - tiddlerWidth={{{ [add] }}} + tiddlerWidthClampedDiff={{{ [add[84]addaddsubtractcompare:number:gt[0]] ~0 }}} + tiddlerWidth={{{ [addsubtract] }}} tiddlerWidthDiff={{{ [subtract] }}} tiddlerMinWidth={{{ [match[%]then] ~[subtract] }}} tiddlerMaxWidth={{{ [match[%]then] ~[subtract] }}}