« get me outta code hell

content: gTIPOtherReleaseTooltip: don't squeeze relative date - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-11 08:09:21 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-11 08:09:21 -0400
commit2c79e815f2e6ed2bee47d6b8f5bb7fcced711a27 (patch)
tree9283db565589d127f5727c69224a2d9ae924e6fb /src/content/dependencies
parent235daf0b24c9c4fe7977c3b861f65f22381690a8 (diff)
content: gTIPOtherReleaseTooltip: don't squeeze relative date
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateTrackInfoPageOtherReleaseTooltip.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/content/dependencies/generateTrackInfoPageOtherReleaseTooltip.js b/src/content/dependencies/generateTrackInfoPageOtherReleaseTooltip.js
index 92ab52ba..fcb2e2fa 100644
--- a/src/content/dependencies/generateTrackInfoPageOtherReleaseTooltip.js
+++ b/src/content/dependencies/generateTrackInfoPageOtherReleaseTooltip.js
@@ -43,11 +43,12 @@ export default {
           }),
 
           data.otherDate && data.currentDate &&
-            language.formatRelativeDate(data.otherDate, data.currentDate, {
-              considerRoundingDays: true,
-              approximate: true,
-              absolute: false,
-            }),
+            html.tag('span', {class: 'when'},
+              language.formatRelativeDate(data.otherDate, data.currentDate, {
+                considerRoundingDays: true,
+                approximate: true,
+                absolute: false,
+              })),
         ],
       })),
-};
\ No newline at end of file
+};