Skip to content

fix(golf): prevent player area layout shift between turns#191

Merged
aaylward merged 1 commit into
mainfrom
fix/golf-player-area-layout-shift
Mar 8, 2026
Merged

fix(golf): prevent player area layout shift between turns#191
aaylward merged 1 commit into
mainfrom
fix/golf-player-area-layout-shift

Conversation

@aaylward

@aaylward aaylward commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The player area div changed size depending on whose turn it was because action buttons were conditionally rendered (removed from DOM). Now uses visibility: hidden to keep buttons in layout but invisible when it's not your turn, preventing the jarring size change.

Use visibility:hidden instead of conditional rendering for action
buttons so the player area maintains consistent height regardless
of whose turn it is.
@aaylward aaylward enabled auto-merge (squash) March 8, 2026 21:37
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
muchq 7c92c98 Commit Preview URL

Branch Preview URL
Mar 08 2026, 09:37 PM

@aaylward aaylward merged commit 9f669b3 into main Mar 8, 2026
2 checks passed
@aaylward aaylward deleted the fix/golf-player-area-layout-shift branch March 8, 2026 21:37
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