Skip to content

fix(web): a card alone in the last row takes the full width - #104

Merged
mertbuilds merged 1 commit into
mainfrom
fix/lone-demo-card
Nov 15, 2026
Merged

mertbuilds merged 1 commit into
mainfrom
fix/lone-demo-card

Conversation

@mertbuilds

Copy link
Copy Markdown
Collaborator

The grab · inspect · grab color card sat alone in the left column of the demo grid. A half card left alone in the last row before the wide cards (or as the last child) now spans both columns on the two-column grid. One column on phones is unchanged. Card lines get a 65ch max width so text stays readable in a wide card.

Proof

  • Measured card width at 1500px: before 336 of 680 (knobs.dev), after 680 of 680 (local), light and dark. At 390px: 358 of 358 both.
  • Screenshots (local): /private/tmp/claude-501/-Users-duzgundev-wiki/3f064b91-f7b3-401f-8702-20e68b3e4ff4/scratchpad/after-1500-light.png, /private/tmp/claude-501/-Users-duzgundev-wiki/3f064b91-f7b3-401f-8702-20e68b3e4ff4/scratchpad/after-1500-dark.png, /private/tmp/claude-501/-Users-duzgundev-wiki/3f064b91-f7b3-401f-8702-20e68b3e4ff4/scratchpad/after-390-light.png, /private/tmp/claude-501/-Users-duzgundev-wiki/3f064b91-f7b3-401f-8702-20e68b3e4ff4/scratchpad/after-390-dark.png
  • Reviewer checked 1280, 700, 640 (spans) and 639 (one column, auto).
  • pnpm typecheck, lint, format:check, test: pass.

Risk

Low, CSS only (landing demo grid). Older browsers without :has / nth-child(of) drop the rule and keep the old layout.

How to revert

Revert this squash commit.

@mertbuilds
mertbuilds merged commit ffee4e4 into main Nov 15, 2026
3 checks passed
@mertbuilds
mertbuilds deleted the fix/lone-demo-card branch November 15, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant