1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00

add fallbacks

This commit is contained in:
BurningTreeC 2024-10-05 14:25:03 +02:00
parent 667e173d02
commit ca32bed448

View File

@ -191,17 +191,23 @@ title: $:/core/macros/sidebar-resizer
<<set-storyleft-actions-pixel>> <<set-storyleft-actions-pixel>>
<%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] %> <%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/storyleft}] %>
<<set-storyleft-actions-percentage>> <<set-storyleft-actions-percentage>>
<% else %>
<<set-storyleft-actions-pixel>>
<% endif %> <% endif %>
<%if [is.pixel.value{$:/themes/tiddlywiki/vanilla/metrics/storyright}] %> <%if [is.pixel.value{$:/themes/tiddlywiki/vanilla/metrics/storyright}] %>
<<set-storyright-actions-pixel>> <<set-storyright-actions-pixel>>
<%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/storyright}] %> <%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/storyright}] %>
<<set-storyright-actions-percentage>> <<set-storyright-actions-percentage>>
<% else %>
<<set-storyright-actions-pixel>>
<% endif %> <% endif %>
<% else %> <% else %>
<%if [is.pixel.value{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}] %> <%if [is.pixel.value{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}] %>
<<set-sidebarwidth-actions-pixel>> <<set-sidebarwidth-actions-pixel>>
<%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}] %> <%elseif [is.percentage.value{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}] %>
<<set-sidebarwidth-actions-percentage>> <<set-sidebarwidth-actions-percentage>>
<% else %>
<<set-sidebarwidth-actions-pixel>>
<% endif %> <% endif %>
<% endif %> <% endif %>
</$let> </$let>