From 4cbbea4bbc03a54b0b96696a960351437bc27635 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 15 Dec 2023 12:29:09 -0400 Subject: content, css: fix tooltip offsets again --- src/content/dependencies/generateNewsEntryReadAnotherLinks.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies/generateNewsEntryReadAnotherLinks.js') 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)); }, }; -- cgit 1.3.0-6-gf8a5