Skip to content

Stop the header overflowing at 440px and on the Arena page - #712

Merged
gerardrecinto merged 1 commit into
masterfrom
fix-header-440
Nov 1, 2026
Merged

gerardrecinto merged 1 commit into
masterfrom
fix-header-440

Conversation

@gerardrecinto

Copy link
Copy Markdown
Collaborator

The landscape fix in #711 covered 640 to 1279px on the homepage and missed two cases.

A Pro Max phone in portrait is 440px wide. The WASM demo badge showed from 440px and pushed the header 19px past the screen, so iOS kept that narrow layout after rotating to landscape. The badge now waits for 500px.

The Arena header overflowed from 640 to 756px, which is a phone in landscape. Its Copilot and GitHub labels and the command palette button now show at wider breakpoints.

Added a test that loads the homepage and Arena at 13 widths from 360 to 1180 and fails on any sideways scroll. It fails on the old code and passes now. I swept every width from 320 to 1300 in WebKit. Arena still overflows at 1700px and wider (large desktop monitors), which I left alone. Not tested on a real iPhone.

Thanks,
Gerard

The first fix covered 640 to 1279px on the homepage. A Pro Max phone in
portrait is 440px wide, where the WASM demo badge appeared and pushed the
header 19px past the screen, so iOS kept that width after rotating. The
badge now waits for 500px. The Arena header had the same problem from
640 to 756px, so its labels and the command palette button move to wider
breakpoints. A test now checks both pages for sideways scroll at 13 widths.

Thanks,
Gerard
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Gemini PR Review

Reviewed commit: 5781c5055bfa60a874fd4a638992dab21fae8a3e
Verdict: PASS

@gerardrecinto
gerardrecinto merged commit 69f9cda into master Nov 1, 2026
36 checks passed
@gerardrecinto
gerardrecinto deleted the fix-header-440 branch November 1, 2026 09:51
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