Skip to content

Commit 6d4f1b6

Browse files
os-zhuangclaude
andcommitted
fix(showcase): command-center bars render — native div grid + width:100% (browser-verified)
Verification of #2496 surfaced two html-tier styling nuances; the page now renders fully (browser-verified on a real objectstack serve console): - the throughput bars used <grid columns={7}>, whose responsive classes collapse to 1 column below the md breakpoint inside the narrow card → switch to a native <div style={{display:grid, gridTemplateColumns:'repeat(7,1fr)'}}> for a fixed 7-track grid; - the bar <flex> items (display:flex, no children) collapsed to width:0 → use native block <div>s, and give the grid container width:100% (a flex-column child doesn't stretch horizontally by default). Confirmed: header typography hierarchy (native <div style>), KPI cards, the primary-bg card, the 7 throughput bars, and the activity dots all render correctly and theme-consistent. No Tailwind. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e050015 commit 6d4f1b6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

examples/app-showcase/src/pages/command-center-jsx.page.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export const CommandCenterJsxPage = definePage({
5454
<grid columns={3} gap={5}>
5555
<flex direction="col" gap={6} style={{"gridColumn":"span 2","background":"hsl(var(--card))","border":"1px solid hsl(var(--border))","borderRadius":"var(--radius)","padding":"24px"}}>
5656
<div style={{"fontSize":"16px","fontWeight":"600","color":"hsl(var(--foreground))"}}>Weekly Throughput</div>
57-
<grid columns={7} gap={4} style={{"height":"140px","alignItems":"end"}}>
58-
<flex style={{"height":"48px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
59-
<flex style={{"height":"86px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
60-
<flex style={{"height":"64px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
61-
<flex style={{"height":"120px","borderRadius":"8px","background":"hsl(var(--primary))"}} />
62-
<flex style={{"height":"58px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
63-
<flex style={{"height":"100px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
64-
<flex style={{"height":"40px","borderRadius":"8px","background":"hsl(var(--primary) / 0.4)"}} />
65-
</grid>
57+
<div style={{"display":"grid","gridTemplateColumns":"repeat(7, 1fr)","gap":"16px","height":"140px","width":"100%","alignItems":"end"}}>
58+
<div style={{"height":"48px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
59+
<div style={{"height":"86px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
60+
<div style={{"height":"64px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
61+
<div style={{"height":"120px","borderRadius":"8px","background":"hsl(var(--primary))"}} />
62+
<div style={{"height":"58px","borderRadius":"8px","background":"hsl(var(--primary) / 0.55)"}} />
63+
<div style={{"height":"100px","borderRadius":"8px","background":"hsl(var(--primary) / 0.7)"}} />
64+
<div style={{"height":"40px","borderRadius":"8px","background":"hsl(var(--primary) / 0.4)"}} />
65+
</div>
6666
</flex>
6767
<flex direction="col" gap={4} style={{"background":"hsl(var(--card))","border":"1px solid hsl(var(--border))","borderRadius":"var(--radius)","padding":"24px"}}>
6868
<div style={{"fontSize":"16px","fontWeight":"600","color":"hsl(var(--foreground))"}}>Recent Activity</div>

0 commit comments

Comments
 (0)