Commit a68a3ae
fix(showcase): stretch Command Center's flex-column children to full width (#2631)
The 3-up chart band (cc_rowA/cc_rowB) rendered at a collapsed ~100px width
per column, wide enough to render but far too narrow to be readable — the
"D" chart-width finding from #2616/#2620, not actually fixed by
objectui#2254 despite that PR touching this exact area.
Root cause: cc_root (the page's outer `type:'flex'` container) never set
`alignItems`, so the `flex` component's own default (`align: 'start'` →
Tailwind `items-start`) applied. In a `flex-direction:column` container,
`align-items:flex-start` means children size to their own content instead
of stretching to the container's width — so each grid-based chart band
(cc_rowA/cc_rowB) shrank to whatever intrinsic width its charts naturally
wanted (~100-130px each) rather than filling the ~1100px available.
Verified live (Playwright + a real backend): row-A chart SVGs measured
100px wide before this fix, 350px after — filling the actual available
width. Screenshot-confirmed all three charts now render full width with
readable axes/legends.
The unrelated `coverage.test.ts` failure on this branch (new registry
kinds `trigger`/`router`/`function`/`service` not yet in KIND_COVERAGE)
pre-exists on main and is untouched by this change.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 27b5745 commit a68a3ae
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments