diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index 35d3d6088..fc1607cea 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -58,13 +58,13 @@ title: $:/core/procedures/sidebar-resizer \end \procedure sidebar-resizer-pointerdown-actions-inner() -<%if [!is[tiddler]thenmatch[left]] %> +<%if [is[missing]thenmatch[left]] %> <$let - startStoryLeft={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[0%]] :else[get.theme.metric[storyleft]] }}} - startStoryRight={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[50%]] :else[get.theme.metric[storyright]] }}} - startSidebarWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[50%]] :else[get.theme.metric[sidebarwidth]] }}} - startTiddlerWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[50%]] :else[get.theme.metric[tiddlerwidth]] }}} - startStoryWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[50%]] :else[get.theme.metric[storywidth]] }}}> + startStoryLeft={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0%]] :else[get.theme.metric[storyleft]] }}} + startStoryRight={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[50%]] :else[get.theme.metric[storyright]] }}} + startSidebarWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[50%]] :else[get.theme.metric[sidebarwidth]] }}} + startTiddlerWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[50%]] :else[get.theme.metric[tiddlerwidth]] }}} + startStoryWidth={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[50%]] :else[get.theme.metric[storywidth]] }}}> <$action-setfield $tiddler=<> text="yes" widget-node-width=<> @@ -89,7 +89,7 @@ title: $:/core/procedures/sidebar-resizer <> <$action-setfield $tiddler="$:/state/sidebar" text="no"/> <% else %> - <%if [[$:/state/sidebar]!is[tiddler]] %> + <%if [[$:/state/sidebar]is[missing]] %> <$action-setfield $tiddler="$:/state/sidebar" text="yes"/> <% endif %> <$action-setfield $tiddler="$:/state/sidebar" click-time=<>/> @@ -128,13 +128,13 @@ title: $:/core/procedures/sidebar-resizer storyWidthStart={{{ [get[start-story-width]] }}} storyRightStart={{{ [convert.to.pixels.locally] }}} storyWidthStart={{{ [convert.to.pixels.locally] }}} - storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then] :else[] }}} + storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyMinWidth={{{ [convert.to.pixels.locally] }}} - sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then] :else[] }}} + sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} - storyPaddingLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[0px]] :else[get.theme.metric[storypaddingleft]] }}} + storyPaddingLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[get.theme.metric[storypaddingleft]] }}} storyPaddingLeft={{{ [convert.to.pixels.locally] }}} - storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then[0px]] :else[get.theme.metric[storypaddingright]] }}} + storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[get.theme.metric[storypaddingright]] }}} storyPaddingRight={{{ [convert.to.pixels.locally] }}} storyLeftValue={{{ [!is[blank]get[text]] :else[] }}} storyLeft={{{ [convert.to.pixels.locally] }}} @@ -195,12 +195,12 @@ title: $:/core/procedures/sidebar-resizer \procedure set-sidebarwidth-actions() <$let - sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then] :else[] }}} + sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} sidebarWidthMetric={{{ [get[sidebar-width-metric]] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} storyLeftValue={{{ [!is[blank]get[text]] :else[] }}} storyLeft={{{ [convert.to.pixels.locally] }}} - storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then] :else[] }}} + storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyMinWidth={{{ [convert.to.pixels.locally] }}} sidebarMaxWidth={{{ [subtractsubtract] }}} clampedDiff={{{ [addaddsubtractcompare:number:gt[0]] ~0 }}} @@ -230,7 +230,7 @@ title: $:/core/procedures/sidebar-resizer storyMinWidth={{{ [convert.to.pixels.locally] }}} storyWidthStart={{{ [get[start-story-width]] }}} storyWidthStart={{{ [convert.to.pixels.locally] }}} - sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]!is[tiddler]then] :else[{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}] }}} + sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} storyMaxWidth={{{ [subtractsubtract] }}} dragDiffMultiplied={{{ [multiply[2]] }}}