From bbfe965da8d1d5a416c92c19f30cfd90194c5c1a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 15 Nov 2024 18:38:13 -0400 Subject: content: generateDotSwitcherTemplate: blank if no options Options were already [html.onlyIfContent], so this seems like a bit of an oversight (it's possible for *none* of the options to have content). --- src/content/dependencies/generateDotSwitcherTemplate.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content/dependencies/generateDotSwitcherTemplate.js') diff --git a/src/content/dependencies/generateDotSwitcherTemplate.js b/src/content/dependencies/generateDotSwitcherTemplate.js index 745a1471..253c231f 100644 --- a/src/content/dependencies/generateDotSwitcherTemplate.js +++ b/src/content/dependencies/generateDotSwitcherTemplate.js @@ -16,6 +16,7 @@ export default { generate: (slots, {html}) => html.tag('span', {class: 'dot-switcher'}, + {[html.onlyIfContent]: true}, {[html.noEdgeWhitespace]: true}, {[html.joinChildren]: ''}, -- cgit 1.3.0-6-gf8a5