diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 09:53:04 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:15 -0300 |
commit | 6cbdcc8b041fc8e9a0300d9616ff5dafe0710c07 (patch) | |
tree | 83d7bf18eef0e0a1ac777180f7052468693a92ce /src | |
parent | 67ac2e5eb60380d1c354ebf578e57a1f944c15c9 (diff) |
content: generateTooltip: blank if no content
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateTooltip.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTooltip.js b/src/content/dependencies/generateTooltip.js index 81f74aec..8314d33c 100644 --- a/src/content/dependencies/generateTooltip.js +++ b/src/content/dependencies/generateTooltip.js @@ -21,10 +21,13 @@ export default { generate: (slots, {html}) => html.tag('span', {class: 'tooltip'}, {[html.noEdgeWhitespace]: true}, + {[html.onlyIfContent]: true}, slots.attributes, html.tag('span', {class: 'tooltip-content'}, {[html.noEdgeWhitespace]: true}, + {[html.onlyIfContent]: true}, slots.contentAttributes, + slots.content)), }; |