Commit d45feb7
fix(ui): PR-P G-36 — rebalance right-edge slots so all 20 are visible
User feedback (screenshot 9:11): 'všetky budovy ktoré buď mám alebo
môžem mať (takže voľné sloty) sa nezobrazujú' — the rightmost
city slots weren't visible at desktop width.
Root cause: SLOT_MAP slot 19 was a 10-px "edge filler" sitting at
x=1790 in the 1800-wide SVG canvas. At ~1240-px container scale,
its on-screen width was ~7 px — practically invisible. Decorative
slots 14-17 next to it were also crammed (50-60 px each at varied
gaps), reading as a busy strip with no breathing room.
Repacked the right-edge cluster into 5 evenly-sized slots (50 px
wide, 5-px gaps), with slot 19 promoted from a 10-px filler to a
proper 40-px civic slot at x=1750. Net x-extent goes from
1530-1800 to 1530-1790 → leaves 10 px of canvas margin before the
right edge so the rightmost tile doesn't sit flush against the
card border.
Slot IDs unchanged; player-save references slot.id (a number),
not coordinates, so no migration needed. Only the visual position
moves.
Verified:
- pnpm typecheck → 0 errors
- pnpm test → 719/719 (no SLOT_MAP coordinate assertions broke)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8b4d7fe commit d45feb7
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
539 | 546 | | |
540 | | - | |
| 547 | + | |
541 | 548 | | |
542 | 549 | | |
543 | 550 | | |
| |||
0 commit comments