Skip to content

Fix horizontal page overflow from EdgeScrollContainer#18167

Merged
wackerow merged 3 commits into
masterfrom
fix/edge-scroll-container-horizontal-overflow
May 11, 2026
Merged

Fix horizontal page overflow from EdgeScrollContainer#18167
wackerow merged 3 commits into
masterfrom
fix/edge-scroll-container-horizontal-overflow

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented May 11, 2026

Summary

  • Fixes Bug report: horizontal overflow on /community/events page #17777: /community/events had ~2300px of horizontal page overflow on mobile (and other viewports).
  • Root cause: the inner overflow-x: auto flex scroll area inside EdgeScrollContainer was leaking into the document's scroll width despite ancestors having overflow: visible. The 8-card hubs instance had enough internal scroll width to make the leak user-visible; smaller instances on /developers/tools, /developers, and /community/events/conferences stayed below the threshold but were similarly affected.
  • Fix: add relative overflow-x-clip on the EdgeScrollContainer outer wrapper. position: relative is required — overflow-x: clip alone does not contain the leak in Chromium (it prevents window.scrollTo from moving but real wheel/touch scrolling still produces overflow).

Test plan

  • Mobile (375px): /community/events no longer scrolls horizontally
  • document.documentElement.scrollWidth === clientWidth after load
  • Hubs cards still scroll horizontally inside the container
  • Card shadows / vertical padding still visible (no clipping of overflow-y)
  • No regression on /developers/tools, /developers, /community/events/conferences
  • Visual: deploy preview screenshot of hubs section looks correct

The inner overflow-x:auto scroll area was leaking into the document's
scroll width, causing horizontal page scroll on /community/events.
Add `relative overflow-x-clip` on the wrapper to contain it; `relative`
is required for `clip` to work in Chromium.

Fixes #17777
@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit b258760
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a01f81614289b0008bfbed4
😎 Deploy Preview https://deploy-preview-18167.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 68 (🟢 up 2 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

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

Tests that pages using EdgeScrollContainer don't leak horizontal
overflow to the document scroll area. Runs against /community/events/
(the page that triggered #17777) and three other pages that use the
component.

Asserts both: real scroll attempt (`scrollBy` → scrollX stays 0) and
layout measurement (`scrollWidth <= clientWidth`). The two catch
different classes of regression.
@pettinarip pettinarip changed the base branch from dev to master May 11, 2026 15:35
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pettinarip, pulling in!

@wackerow wackerow merged commit 51aa0ea into master May 11, 2026
15 of 18 checks passed
@wackerow wackerow deleted the fix/edge-scroll-container-horizontal-overflow branch May 11, 2026 16:01
@pettinarip pettinarip mentioned this pull request May 15, 2026
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.

Bug report: horizontal overflow on /community/events page

2 participants