From 22b33e6fe4288f365230e7dec5d70039ad12f80f Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 4 Oct 2024 15:34:52 +0200 Subject: [PATCH] updates --- core/wiki/macros/sidebar-resizer.tid | 4 ++-- themes/tiddlywiki/vanilla/sidebar-resizer.tid | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index 5ee7c20c9..064dd97e5 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -5,7 +5,7 @@ title: $:/core/macros/sidebar-resizer <$let dragDiff=<> dragWidth=<> rightDiff={{{ [subtract] }}} storyRiverWidth={{{ [subtractsubtract[14]] }}} sidebarWidth={{{ [subtractaddadd[14]] }}}> <%if [{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]] %> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth" text={{{ [addsuffix[px]] }}}/> - <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" text={{{ [addadd[6]addsuffix[px]] }}}/> + <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" text={{{ [addsuffix[px]] }}}/> <% else %> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth" text={{{ [addsuffix[px]] }}}/> <% endif %> @@ -21,7 +21,7 @@ title: $:/core/macros/sidebar-resizer <$let storyRiverWidth={{{ [subtract{$:/state/sidebar/resizing!!drag-diff}subtract[14]] }}} sidebarWidth={{{ [subtractadd{$:/state/sidebar/resizing!!drag-diff}add[14]] }}}> <%if [{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]] %> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth" text={{{ [addsuffix[px]] }}}/> - <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" text={{{ [add{$:/state/sidebar/resizing!!right-diff}add[6]addsuffix[px]] }}}/> + <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" text={{{ [addsuffix[px]] }}}/> <% else %> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth" text={{{ [addsuffix[px]] }}}/> <% endif %> diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 0baf61429..aa30f6556 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -107,7 +107,7 @@ code-body: yes <%if [{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]] %> .tc-sidebar-resizer { - left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} - 36px),calc({{$:/themes/tiddlywiki/vanilla/metrics/storyright}} - 36px),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - 36px)); + left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} - 28px),calc({{$:/themes/tiddlywiki/vanilla/metrics/storyright}} - 28px),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - 28px)); } <% else %>