« get me outta code hell

css: more scary tooltip nonsense - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-16 13:40:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-16 13:41:20 -0300
commit6f93fced881b5f2f62452aeccaf9dea7120149b5 (patch)
tree34266314b818638ef3f48c488bc82c58c3c91523 /src
parent9828a764e16f106aa704ca5b0553010a1bdb2a87 (diff)
css: more scary tooltip nonsense
Diffstat (limited to 'src')
-rw-r--r--src/static/css/site.css14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css
index fce1a2a8..07c2e7fa 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -1169,11 +1169,15 @@ li:not(:first-child:last-child) .tooltip:where(:not(.cover-artwork .tooltip)),
   font-size: 0.85em;
 }
 
-/* Terrifying?
- * https://stackoverflow.com/a/64424759/4633828
- */
-.thing-name-tooltip { margin-right: -120px; }
-.wiki-edits-tooltip { margin-right: -200px; }
+.thing-name-tooltip .tooltip-content {
+  width: max-content;
+  max-width: 120px;
+}
+
+.wiki-edits-tooltip .tooltip-content {
+  width: max-content;
+  max-width: 200px;
+}
 
 .contribution-tooltip .tooltip-content {
   padding: 6px 2px 2px 2px;