Skip to content

Commit

Permalink
fix resizer positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC committed Oct 10, 2024
1 parent 11cb571 commit 23f8af3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/tiddlywiki/vanilla/sidebar-resizer.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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[/]addsuffix<metric>get[text]] ~[[$:/themes/tiddlywiki/vanilla/]addsuffix<metric>get[text]]

\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional

@media (min-width: <<sidebarbreakpoint>>) {
Expand All @@ -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(<<get.theme.metric metrics/storypaddingright>> / 2),21px);
transition: opacity 100ms;
opacity: 0.1;
cursor: ew-resize;
Expand Down

0 comments on commit 23f8af3

Please sign in to comment.