From 2afd0745f740f895b169805a216a87f5006172fa Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Sat, 9 May 2026 20:36:22 +0200 Subject: [PATCH] Prevent sponsor text CTA overlap --- theme/pagetoc.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/theme/pagetoc.css b/theme/pagetoc.css index 717361b02..8388dcf46 100644 --- a/theme/pagetoc.css +++ b/theme/pagetoc.css @@ -139,8 +139,8 @@ transition-duration: .3s; } .sidesponsor:hover img{ - width: 52px; - padding: 6px; + width: 42px; + padding: 4px; grid-area: sponsor-image; align-self: start; } @@ -192,9 +192,11 @@ display:block; grid-area: sponsor-description; min-height: 0; + max-height: 100%; margin-top: 0; margin-bottom: 0; overflow: auto; + overscroll-behavior: contain; } .sidesponsor .sponsor-cta{ margin-top: auto; @@ -210,6 +212,10 @@ .sidesponsor:hover .sponsor-cta{ grid-area: sponsor-cta; margin-top: 0; + margin-bottom: 4px; + padding: 4px 6px; + font-size: 0.9rem; + line-height: 1.1; } .sidesponsor-bsa { max-height: 40%;