From 6f93fced881b5f2f62452aeccaf9dea7120149b5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Apr 2025 13:40:42 -0300 Subject: css: more scary tooltip nonsense --- src/static/css/site.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/static/css/site.css') 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; -- cgit 1.3.0-6-gf8a5