From 1d83cd46e5ed23bd7d581efdac999a984c303f27 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Nov 2024 18:49:40 -0400 Subject: 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???) --- src/content/dependencies/generateTextWithTooltip.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/content/dependencies/generateTextWithTooltip.js') 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 = -- cgit 1.3.0-6-gf8a5