Skip to content

Fix event/news detail CTA overlapping content on mobile#201

Open
Johngeorgesample wants to merge 3 commits intomainfrom
fix/mobile-bottom-sheet-overlap
Open

Fix event/news detail CTA overlapping content on mobile#201
Johngeorgesample wants to merge 3 commits intomainfrom
fix/mobile-bottom-sheet-overlap

Conversation

@Johngeorgesample
Copy link
Copy Markdown
Owner

Summary

  • Add env(safe-area-inset-bottom) padding to the fixed CTA bar in EventDetails and NewsDetails so it clears the iOS home indicator
  • Increase scrollable content bottom padding to account for the taller CTA bar on devices with safe area insets
  • Switch map container from 100vh to 100dvh to account for dynamic mobile browser chrome (address bar, bottom toolbar)

Context

On real mobile devices, the "View Event Website" / "View Source" CTA button overlaps the description text. This doesn't reproduce in Chrome DevTools responsive mode because simulated viewports don't account for mobile browser chrome shrinking the visible area.

Test plan

  • Open an event detail on a real iOS device (especially one with a home indicator) and verify the description text scrolls cleanly above the CTA
  • Verify the same fix on a real Android device
  • Confirm no visual regression on desktop sidebar layout
  • Check the news detail view has the same fix applied

🤖 Generated with Claude Code

Mobile browser chrome (address bar, bottom toolbar) causes viewport
height differences vs Chrome DevTools simulation. Add safe-area-inset-bottom
padding to fixed CTA bars and scrollable content areas, and switch
map container from 100vh to 100dvh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 12, 2026

Deploy Preview for comfy-custard-bdea2e ready!

Name Link
🔨 Latest commit 1720f11
🔍 Latest deploy log https://app.netlify.com/projects/comfy-custard-bdea2e/deploys/698d440668256000083e22c2
😎 Deploy Preview https://deploy-preview-201--comfy-custard-bdea2e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 44
Accessibility: 100
Best Practices: 92
SEO: 100
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Johngeorgesample and others added 2 commits February 11, 2026 22:01
The previous approach used absolute positioning for the CTA bar with
bottom padding on the scrollable content to compensate. This breaks
on real mobile devices because the content flows behind the CTA.

Switch to a proper flex column layout: scrollable content uses flex-1
with min-h-0 and overflow-y-auto, CTA uses shrink-0 as an in-flow
flex child. The CTA now naturally sits below the scroll area and
never overlaps content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The previous approaches failed because EventDetails created its own
scroll context (overflow-y-auto) inside the Sheet.Content which is
already the scroll container. The absolute-positioned CTA overlapped
content, and the flex layout CTA was unreachable.

Now the content flows naturally within the Sheet's scroll container
with no nested scroll context, and the CTA uses sticky bottom-0 to
stay pinned at the bottom of the visible area while scrolling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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