« get me outta code hell

content, css: fix tooltip offsets again - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateNewsEntryReadAnotherLinks.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-12-15 12:29:09 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-15 12:29:09 -0400
commit4cbbea4bbc03a54b0b96696a960351437bc27635 (patch)
tree186e173ed323516f8ae8c80510bf6c561a038502 /src/content/dependencies/generateNewsEntryReadAnotherLinks.js
parent51d7d11b15784a616c6e36776702359d7a8b982e (diff)
content, css: fix tooltip offsets again
Diffstat (limited to 'src/content/dependencies/generateNewsEntryReadAnotherLinks.js')
-rw-r--r--src/content/dependencies/generateNewsEntryReadAnotherLinks.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content/dependencies/generateNewsEntryReadAnotherLinks.js b/src/content/dependencies/generateNewsEntryReadAnotherLinks.js
index c97d815..33c5bda 100644
--- a/src/content/dependencies/generateNewsEntryReadAnotherLinks.js
+++ b/src/content/dependencies/generateNewsEntryReadAnotherLinks.js
@@ -88,7 +88,10 @@ export default {
       html.tag('p', {
         [html.onlyIfContent]: true,
         [html.joinChildren]: html.tag('br'),
-        class: ['read-another-links', 'offset-tooltips'],
+        class: [
+          'read-another-links',
+          entryLines.length > 1 && 'offset-tooltips',
+        ],
       }, entryLines));
   },
 };