Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontally sticky banner on mobile #304

Merged

Conversation

jonathanhefner
Copy link
Member

Prior to this commit, when the #content element had horizontal overflow on mobile, the <body> element would become horizontally scrollable, and the banner would scroll off screen when scrolling.

This commit adds overflow-x: auto to #content so that horizontal scrolling is limited to the #content element and the banner remains fixed in place when scrolling.

Before After
before after

Prior to this commit, when the `#content` element had horizontal
overflow on mobile, the `<body>` element would become horizontally
scrollable, and the banner would scroll off screen when scrolling.

This commit adds `overflow-x: auto` to `#content` so that horizontal
scrolling is limited to the `#content` element and the banner remains
fixed in place when scrolling.
@jonathanhefner jonathanhefner merged commit ba82160 into rails:main Sep 14, 2023
10 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.

1 participant