Skip to content

Fix home page logo overflowing mobile viewport#13

Merged
stefan-burke merged 1 commit into
mainfrom
claude/test-mobile-layout-tENyx
Apr 24, 2026
Merged

Fix home page logo overflowing mobile viewport#13
stefan-burke merged 1 commit into
mainfrom
claude/test-mobile-layout-tENyx

Conversation

@stefan-burke
Copy link
Copy Markdown
Member

Summary

  • Took mobile screenshots (375x667) of every page to check for layout issues
  • Found the home page Enter 6.0 logo was overflowing the viewport — the logo.png source is 1458px wide, and the theme rule for images inside .video-background capped them at 40rem (640px) with no lower bound, so on small screens the image was rendered wider than the phone
  • Clamped max-width to min(40rem, 100%) so it still sizes up to 640px on desktop but shrinks to fit on mobile. Added height: auto defensively so the aspect ratio is preserved when the width contracts

Test plan

  • Rebuild and screenshot /, /build/, /contact/, /gallery/, /system/, /updates/ at 375x667 — all headers now fit
  • Scrolled to the second video-background ("Coming to a fair near you") to verify it still reads correctly
  • Spot check on a real phone / desktop to confirm the logo still renders at full size above the md breakpoint

https://claude.ai/code/session_01S4g3QuydKr79HxY5jCgw4j


Generated by Claude Code

The 40rem ceiling let the home page logo (1458px wide) overflow the
viewport on small screens. Clamp to min(40rem, 100%) so it shrinks
below 640px.

https://claude.ai/code/session_01S4g3QuydKr79HxY5jCgw4j
@stefan-burke stefan-burke merged commit f390a3a into main Apr 24, 2026
4 checks passed
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