fix: Score 9.0/10 nicht umbrechen (white-space:nowrap)

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) <noreply@anthropic.com>
This commit is contained in:
Dotty Dotter 2026-05-07 14:31:34 +02:00
parent 4569f3335f
commit 4e122bceb0

View File

@ -68,8 +68,8 @@
display:flex;flex-direction:column;justify-content:center;align-items:center; display:flex;flex-direction:column;justify-content:center;align-items:center;
border-radius:8px; border-radius:8px;
} }
.score .num{font-weight:800;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums} .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} .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} .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{display:flex;flex-direction:column;justify-content:center}
.verdict .kicker{font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)} .verdict .kicker{font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}