1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-24 07:56:52 +00:00

move sidebar-resizer ui into dedicated PageTemplate

This commit is contained in:
BurningTreeC 2024-10-27 07:35:29 +01:00
parent a1b356e59f
commit 9b4e961502

View File

@ -1,20 +1,20 @@
title: $:/themes/tiddlywiki/vanilla/ui/sidebar-resizer
tags: $:/tags/PageTemplate
list-after: $:/core/ui/PageTemplate/story
\import [function[get.base.functions.theme],{$:/theme}first[]!is[missing]] :else[function[get.base.functions.theme],{$:/theme}first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] [[$:/core/macros/sidebar-resizer]]
\whitespace trim
<%if [<get.theme.option sidebarresizer>match[show]] %>
<$let
tv-set-storywidth-storyright=<<set.storywidth.storyright>>
tv-set-sidebarwidth=<<set.sidebarwidth>>
tv-set-centralised=<<set.centralised>>
>
<$transclude $variable="sidebar-resizer"/>
</$let>
<% endif %>
title: $:/core/ui/sidebar-resizer
tags: $:/tags/PageTemplate
list-after: $:/core/ui/PageTemplate/story
\import [function[get.base.functions.theme],{$:/theme}first[]!is[missing]] :else[function[get.base.functions.theme],{$:/theme}first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] [[$:/core/macros/sidebar-resizer]]
\whitespace trim
<%if [<get.theme.option sidebarresizer>match[show]] %>
<$let
tv-set-storywidth-storyright=<<set.storywidth.storyright>>
tv-set-sidebarwidth=<<set.sidebarwidth>>
tv-set-centralised=<<set.centralised>>
>
<$transclude $variable="sidebar-resizer"/>
</$let>
<% endif %>