« get me outta code hell

content: generateDotSwitcherTemplate: blank if no options - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateDotSwitcherTemplate.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-15 18:38:13 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-15 18:46:58 -0400
commitbbfe965da8d1d5a416c92c19f30cfd90194c5c1a (patch)
tree97305142fdd4569795a510900f55228c5f2a2527 /src/content/dependencies/generateDotSwitcherTemplate.js
parentdda59b812f86bd2e92ad8c471300e055b38db166 (diff)
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).
Diffstat (limited to 'src/content/dependencies/generateDotSwitcherTemplate.js')
-rw-r--r--src/content/dependencies/generateDotSwitcherTemplate.js1
1 files changed, 1 insertions, 0 deletions
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]: ''},