UI fixes #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Shipped in cmoriarty/scratch-vllm-fp8#7, merged into
mainasf2d2edd28c.The OpenSpec change is archived as
2026-11-06-ui-fixes-1-the-cards-on-the-table-are-to-cm8884.Braid run: http://openspecflow.internal.underthere.xyz/run/run_01M6SF1DHS26CJTXCQZNCM8884
Heads-up: the card cutoff from items 1 and 2 was not actually fixed by #7 — that PR only made the cards larger. The root cause was in the card SVG geometry in
packages/client/src/components/Card.tsx: the bottom-right rank index was placed aty=78with its 180° rotation centered on the baseline itself, so the flipped glyph extended downward to ~y=88 while the SVGviewBoxends at y=84. About half the rank was clipped on every card (trump, played, and hand).Fix (in progress, not yet committed): the bottom-right index is now the top-left index mirrored 180° about the card center (30 42) — rank at (52 66), suit glyph at (52 52) — so the flipped glyphs stay inside the viewBox, like a real playing card. One-file change in
Card.tsx.Verified: rendered the exact SVG markup at the app's real sizes before/after (before reproduces the screenshots in this issue; after shows all ranks fully visible),
npm run typecheckclean,npm test140/140 passing.