« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateNewsEntryReadAnotherLinks.js5
-rw-r--r--src/static/site6.css4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/content/dependencies/generateNewsEntryReadAnotherLinks.js b/src/content/dependencies/generateNewsEntryReadAnotherLinks.js
index c97d8150..33c5bda0 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));
   },
 };
diff --git a/src/static/site6.css b/src/static/site6.css
index 16455418..c7587971 100644
--- a/src/static/site6.css
+++ b/src/static/site6.css
@@ -514,8 +514,8 @@ a:not([href]):hover {
   left: -10px;
 }
 
-li:not(:first-child:last-child) > .datetimestamp-tooltip,
-.offset-tooltips :not(:first-child:last-child) > .datetimestamp-tooltip {
+li:not(:first-child:last-child) .datetimestamp-tooltip,
+.offset-tooltips > :not(:first-child:last-child) .datetimestamp-tooltip {
   left: 14px;
 }