X Tutup
Skip to content

fix(site): prevent vertical scrollbar caused by deployment banner#22877

Open
tracyjohnsonux wants to merge 1 commit intomainfrom
fix/deployment-banner-vertical-scrollbar
Open

fix(site): prevent vertical scrollbar caused by deployment banner#22877
tracyjohnsonux wants to merge 1 commit intomainfrom
fix/deployment-banner-vertical-scrollbar

Conversation

@tracyjohnsonux
Copy link

@tracyjohnsonux tracyjohnsonux commented Mar 10, 2026

Summary

When the deployment banner's horizontal scrollbar appears on narrow viewports, it triggers an unwanted vertical scrollbar on the page.
image

Root Cause

The app sets scrollbar-gutter: stable on <html> (in index.css) which reserves space for a vertical scrollbar. The DashboardLayout uses min-h-screen with justify-between, making content fill exactly 100vh. When the deployment banner's overflow-x: auto activates a horizontal scrollbar, the scrollbar track adds height that pushes the document past 100vh, triggering the vertical scrollbar.

Fix

Add overflow-y-hidden to the deployment banner. This prevents the horizontal scrollbar's track height from contributing to the document's vertical overflow.

Changes

  • DeploymentBannerView.tsx: Added overflow-y-hidden alongside existing overflow-x-auto

When the deployment banner's horizontal scrollbar appears (on narrow
viewports), the scrollbar track height causes the page to exceed 100vh,
triggering a vertical scrollbar. This is exacerbated by the global
scrollbar-gutter: stable rule on <html> which reserves space for the
vertical scrollbar.

Adding overflow-y: hidden to the banner prevents vertical overflow from
contributing to the document height when the horizontal scrollbar is
rendered.
@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@tracyjohnsonux
Copy link
Author

Note, the agent was unable to show me a broken before, then a fixed after. So I wasn't able to confirm this would indeed fix things. Seems pretty straight forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup