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:
parent
4569f3335f
commit
4e122bceb0
@ -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)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user