From 4e122bceb0c58ceae704fd49d7a414e4872d3359 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Thu, 7 May 2026 14:31:34 +0200 Subject: [PATCH] fix: Score 9.0/10 nicht umbrechen (white-space:nowrap) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Im PNG-Export wurde 9.0/10 manchmal auf zwei Zeilen gerendert (9.0/ in einer Zeile, 10 in einer neuen). Ursache: WeasyPrint laedt Inter ueber das Google-Fonts-CDN nicht zuverlaessig (CSP-/Font-Loading- Issue), Fallback auf System-Sans hat andere Metriken → Score-Inhalt wird breiter als 320px Score-Box → Umbruch. Fix: white-space: nowrap auf .score .num und .score .num small. Erzwingt 1-zeilige Darstellung egal welcher Font-Fallback geladen wird. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/templates/v2/screens/scorecard_portrait.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/v2/screens/scorecard_portrait.html b/app/templates/v2/screens/scorecard_portrait.html index 587a49b..0650f7d 100644 --- a/app/templates/v2/screens/scorecard_portrait.html +++ b/app/templates/v2/screens/scorecard_portrait.html @@ -68,8 +68,8 @@ display:flex;flex-direction:column;justify-content:center;align-items:center; border-radius:8px; } - .score .num{font-weight:800;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums} - .score .num small{opacity:.7;font-weight:600} + .score .num{font-weight:800;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap} + .score .num small{opacity:.7;font-weight:600;white-space:nowrap} .score .label{font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.1em;opacity:.85} .verdict{display:flex;flex-direction:column;justify-content:center} .verdict .kicker{font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}