diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index d2ea9e7af..f8433c588 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -128,9 +128,9 @@ title: $:/core/procedures/sidebar-resizer storyWidthStart={{{ [get[start-story-width]] }}} storyRightStart={{{ [convert.to.pixels.locally] }}} storyWidthStart={{{ [convert.to.pixels.locally] }}} - storyMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then[10px]] :else[] }}} + storyMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyMinWidth={{{ [convert.to.pixels.locally] }}} - sidebarMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then[10px]] :else[] }}} + sidebarMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then] :else[] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} storyPaddingLeftValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then[0px]] :else[get.theme.metric[storypaddingleft]] }}} storyPaddingLeft={{{ [convert.to.pixels.locally] }}} @@ -195,12 +195,12 @@ title: $:/core/procedures/sidebar-resizer \procedure set-sidebarwidth-actions() <$let - sidebarMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then[10px]] :else[] }}} + sidebarMinWidthValue={{{ [!is[blank]!is[missing]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[missing]get[text]] :else[!is[blank]is[missing]then[10px]] :else[] }}} + storyMinWidthValue={{{ [!is[blank]!is[missing]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[missing]get[text]] :else[!is[blank]is[missing]then[10px]] :else[{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}] }}} + sidebarMinWidthValue={{{ [!is[blank]!is[missing]get[text]] :else[!is[blank]is[missing]then] :else[{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} storyMaxWidth={{{ [subtractsubtract] }}} dragDiffMultiplied={{{ [multiply[2]] }}} diff --git a/core/wiki/macros/sliders.tid b/core/wiki/macros/sliders.tid index 1d3fd5c57..b635c60a1 100644 --- a/core/wiki/macros/sliders.tid +++ b/core/wiki/macros/sliders.tid @@ -2,7 +2,7 @@ title: $:/core/procedures/sliders tags: $:/tags/Global code-body: yes -\procedure one-cell-slider(width:"100%",minHeight:"10px",template:"",mode:"block",sliderWidth:"12px",padding:"12px",sliderCondition:"yes") +\procedure one-cell-slider(width:"100%",minHeight:"10px",template:"",mode:"block",sliderWidth:"12px",padding:"12px",sliderCondition:"yes",leftMinWidth:"100px",rightMinWidth:"100px") \import $:/core/procedures/sidebar-resizer \function get.resizer.style.position() absolute \function get.template-right.width() [get[text]] :else[[50%]] @@ -10,6 +10,8 @@ code-body: yes \function get.resizer.style.width() [] \function set.throttling() no \function get.template.left() +\function get.left.minwidth() [] +\function get.right.minwidth() [] \whitespace trim
\end -\procedure two-cell-slider(width:"100%",minHeight:"10px",templateLeft:"",templateRight:"",mode:"block",sliderWidth:"12px",padding:"12px",sliderCondition:"yes") +\procedure two-cell-slider(width:"100%",minHeight:"10px",templateLeft:"",templateRight:"",mode:"block",sliderWidth:"12px",padding:"12px",sliderCondition:"yes",leftMinWidth:"100px",rightMinWidth:"100px") \import $:/core/procedures/sidebar-resizer \function get.resizer.style.position() absolute \function get.template-right.width() [get[text]] :else[[50%]] \function get.resizer.style.left() [[calc(100% - ]addsuffixaddsuffix[)]] \function get.resizer.style.width() [] \function set.throttling() no +\function get.left.minwidth() [] +\function get.right.minwidth() [] \whitespace trim