« get me outta code hell

content: generateTextWithTooltip: always blank w/ blank text - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTextWithTooltip.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-30 18:49:40 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-30 18:50:17 -0400
commit1d83cd46e5ed23bd7d581efdac999a984c303f27 (patch)
tree837d7a152db889afc9d5c19d39b82778a24616ed /src/content/dependencies/generateTextWithTooltip.js
parent4e7803305a9b5149065416fda5fc01b4bdb34607 (diff)
content: generateTextWithTooltip: always blank w/ blank text
Resolves #528. No particular content changes in practice,
or at least none for commentary entries without dates.
(Maybe commentary entries which have date-retrieved
but not basic date???)
Diffstat (limited to 'src/content/dependencies/generateTextWithTooltip.js')
-rw-r--r--src/content/dependencies/generateTextWithTooltip.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTextWithTooltip.js b/src/content/dependencies/generateTextWithTooltip.js
index 87626367..49ce1f61 100644
--- a/src/content/dependencies/generateTextWithTooltip.js
+++ b/src/content/dependencies/generateTextWithTooltip.js
@@ -46,11 +46,19 @@ export default {
     const textPart =
       (hasTooltip && slots.customInteractionCue
         ? html.tag('span', {class: 'hoverable'},
+            {[html.onlyIfContent]: true},
+
             slots.text)
+
      : hasTooltip
         ? html.tag('span', {class: 'hoverable'},
+            {[html.onlyIfContent]: true},
+
             html.tag('span', {class: 'text-with-tooltip-interaction-cue'},
+              {[html.onlyIfContent]: true},
+
               slots.text))
+
         : slots.text);
 
     const content =