From 23f8af34b87d2c9a474c40e63404b2a3a8d868dd Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Thu, 10 Oct 2024 11:49:15 +0200 Subject: [PATCH] fix resizer positioning --- themes/tiddlywiki/vanilla/sidebar-resizer.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 71d5f7d1e..d63c47501 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -6,6 +6,8 @@ code-body: yes \function sidebarbreakpoint-minus-one() [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] +\function get.theme.metric(metric) [{$:/theme}addsuffix[/]addsuffixget[text]] ~[[$:/themes/tiddlywiki/vanilla/]addsuffixget[text]] + \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional @media (min-width: <>) { @@ -14,7 +16,7 @@ code-body: yes position: fixed; top: 0; height: 100%; - width: min(calc({{$:/themes/tiddlywiki/vanilla/metrics/storypaddingright}} / 2),21px); + width: min(calc(<> / 2),21px); transition: opacity 100ms; opacity: 0.1; cursor: ew-resize;