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

Improve the "safe area" when reading with larger max-width in iOS Safari #14

Open
ivan opened this issue Dec 27, 2022 · 0 comments
Open

Comments

@ivan
Copy link
Member

ivan commented Dec 27, 2022

unbook's viewport-fit=cover in <meta name="viewport" content="width=device-width, viewport-fit=cover" /> was used to prevent iOS Safari from applying the <body> background-color to the "safe area" in landscape mode (we want the <html> background-color instead).

But if the unbook max-width is set sufficiently high, it can make the left edge of the text run up to the very edge of the notch.

https://css-tricks.com/the-notch-and-css/

https://stephenradford.me/removing-the-white-bars-in-safari-on-iphone-x/

If there is no way to make iOS Safari use the <html> background-color, we might have to wrap everything in the <body> with a div to apply the lighter background color for the text.

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

No branches or pull requests

1 participant