Let a long state chip wrap instead of running off the phone

A change chip like "bandit leader aggression +10" was nowrap inside the
story column, which has nothing to scroll, so it overran narrow screens.
The label may now break as a last resort while the value stays glued
together, and the analytics range buttons wrap onto a second row.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfMCsN1KBLsTqMkj5hSgrY
This commit is contained in:
parththakkar106
2026-08-23 04:30:08 +05:30
co-authored by Claude Opus 5
parent 1d320152f0
commit 28322b4b82
2 changed files with 15 additions and 4 deletions
+6 -2
View File
@@ -1213,7 +1213,7 @@ function StateChangeChips({ changes }) {
<div className="turn-changes">
{changes.map((c, i) => {
if (c.kind === 'flag') {
return <span key={i} className="chg chg-flag">{nice(c.label)}: {c.on ? 'on' : 'off'}</span>
return <span key={i} className="chg chg-flag">{nice(c.label)}: <span className="chg-val">{c.on ? 'on' : 'off'}</span></span>
}
if (c.kind === 'milestone') {
return <span key={i} className="chg chg-ms">✓ {nice(c.label)}</span>
@@ -1221,7 +1221,11 @@ function StateChangeChips({ changes }) {
const d = c.delta
const dir = typeof d === 'number' ? (d > 0 ? 'up' : d < 0 ? 'down' : 'flat') : 'flat'
const txt = typeof d === 'number' ? (d > 0 ? `+${d}` : `${d}`) : `→ ${c.value}`
return <span key={i} className={`chg chg-stat chg-${dir}`}>{nice(c.label)} {txt}</span>
return (
<span key={i} className={`chg chg-stat chg-${dir}`}>
{nice(c.label)} <span className="chg-val">{txt}</span>
</span>
)
})}
</div>
)