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

Fix RTL pages with firefox-app-store banner #15793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

janbrasna
Copy link
Contributor

@janbrasna janbrasna commented Dec 31, 2024

One-line summary

Clips any overflow so that page width doesn't change.
(Fixes broken RTL product pages on mobile chromium.)

Significant changes and points to review

Tried to trace the viewport width to something moving far left, e.g. "image-replaced" or "visually-hidden" -9999px etc. but wasn't able to find the actual culprit (to perhaps change that to bidi or inline-start syntax). This instead makes sure the banner is contained in its box for good measure, which also gets the job done, with not much risk of breaking somewhere.

Issue / Bugzilla link

Resolves #15715

Testing

(webkit+chromium, banner displayed i.e. not dismissed and on detected mobile device etc.)

http://localhost:8000/ar/firefox/
http://localhost:8000/ar/firefox/mobile
http://localhost:8000/ar/firefox/focus
http://localhost:8000/ar/firefox/android
http://localhost:8000/ar/firefox/ios

@janbrasna janbrasna requested a review from a team as a code owner December 31, 2024 22:56
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.

Showing app-store-banner in RTL layouts causes horizontal scrollbars
1 participant