UI fixes #6

Closed
opened 2026-11-06 17:16:51 -05:00 by cmoriarty · 2 comments
Owner
  1. The cards on the table are too small, and they get cut off on the bottom image
  2. The cards in the hand could also be a little bigger and more visible, and they also get cut off on the bottom.
  3. When you are choosing a bid they are grayed out, which seems unnecessary.
  4. The bots have no delay, and it's strange playing with 4 of them, it's just always my turn. Each player should have a small randomized delay to make them seem more human-like.
  5. The cards in your hand are arranged in a strange pattern where the first and last card seem to be sticking upimage
  6. The top boxes for each player should all be the same size.
  7. I don't understand what the orange lines are in the other player boxes image
  8. The tricks each player wins should be visually shown, this means the other players should probably spread out so its clear who each trick belongs to.
  9. Maybe each player should get an avatar, generate maybe a dozen different avatars to choose from some serious some funny. The bots should all have their own specific avatar that doesn't change and was made specifically for them.
1. The cards on the table are too small, and they get cut off on the bottom ![image](/attachments/3bc1a6de-1a40-472d-82d5-6e56905ffc45) 2. The cards in the hand could also be a little bigger and more visible, and they also get cut off on the bottom. 3. When you are choosing a bid they are grayed out, which seems unnecessary. 4. The bots have no delay, and it's strange playing with 4 of them, it's just always my turn. Each player should have a small randomized delay to make them seem more human-like. 5. The cards in your hand are arranged in a strange pattern where the first and last card seem to be sticking up![image](/attachments/b07931b0-3c2d-4860-90a4-487a8ec0f7a9) 6. The top boxes for each player should all be the same size. 7. I don't understand what the orange lines are in the other player boxes ![image](/attachments/3c21600a-b36f-4a19-9f8d-2f1a422380e5) 8. The tricks each player wins should be visually shown, this means the other players should probably spread out so its clear who each trick belongs to. 9. Maybe each player should get an avatar, generate maybe a dozen different avatars to choose from some serious some funny. The bots should all have their own specific avatar that doesn't change and was made specifically for them.
Author
Owner

Shipped in cmoriarty/scratch-vllm-fp8#7, merged into main as f2d2edd28c.

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

Shipped in [cmoriarty/scratch-vllm-fp8#7](https://forgejo.underthere.xyz/cmoriarty/scratch-vllm-fp8/pulls/7), merged into `main` as `f2d2edd28c`. 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
Author
Owner

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 at y=78 with its 180° rotation centered on the baseline itself, so the flipped glyph extended downward to ~y=88 while the SVG viewBox ends 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 typecheck clean, npm test 140/140 passing.

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 at `y=78` with its 180° rotation centered on the baseline itself, so the flipped glyph extended downward to ~y=88 while the SVG `viewBox` ends 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 typecheck` clean, `npm test` 140/140 passing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/scratch-vllm-fp8#6
No description provided.