Skip to content

Tetris: fix board sizing, controls order, and down button#19

Merged
github-actions[bot] merged 1 commit into
mainfrom
claude/tetris-fix-v3
May 10, 2026
Merged

Tetris: fix board sizing, controls order, and down button#19
github-actions[bot] merged 1 commit into
mainfrom
claude/tetris-fix-v3

Conversation

@samoletovs
Copy link
Copy Markdown
Owner

  • Side panels fixed to 56px width + 44px canvases — board gets ~45% more width on phone
  • Board size calculation uses constant instead of measuring panels (fixes inconsistent sizing)
  • canvas#game now fills board-wrap correctly (width/height 100%)
  • Controls left cluster reordered: ⤓ top / ↓ middle / ← bottom — ← and → now at same height
  • Per-button pointerdown listeners — fixes down button not responding

Generated by Claude Code

- Side panels: explicit 56px width (was auto) + 44px canvases — board gets ~45% more width on phone
- Fixed canvas fill: canvas#game now has width/height 100% so it fills board-wrap correctly
- Fixed board size calculation: constant 56*2+8 instead of measuring panels (eliminates measurement bugs)
- Controls left cluster reordered: ⤓ top / ↓ middle / ← bottom — left and right arrows now at same height
- Per-button pointerdown listeners: fixes down button not responding; eliminates event delegation issues

https://claude.ai/code/session_01V6s7b7ReDstVRgFcuZbkx7
@github-actions github-actions Bot merged commit 64ea60f into main May 10, 2026
1 check passed
@github-actions github-actions Bot deleted the claude/tetris-fix-v3 branch May 10, 2026 09:46
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.

2 participants