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

Zoom level wrong on mobile browsers #15

Open
charlesweir opened this issue Jan 9, 2022 · 0 comments
Open

Zoom level wrong on mobile browsers #15

charlesweir opened this issue Jan 9, 2022 · 0 comments

Comments

@charlesweir
Copy link

charlesweir commented Jan 9, 2022

The page comes up zoomed in when viewed in Chrome on iPhone 11, Android (recent) and an embedded browser in a mobile app (Pinner). Thus much of the text cannot be seen. When I pinch zoom the page out, it looks great.

The problem appears to be the viewport directive. Currently this is
<meta name="viewport" content="width=640">

But by default mobile browsers do zoom webpages. And further viewport entries in _includes/head_custom.html are removed by the parser.

A suggested solution is to change the viewport directive to something like:
<meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=5.0, minimum-scale=0.5">

There is a workaround here:
https://stackoverflow.com/questions/70639586/automatically-zoom-out-when-displaying-page-in-mobile-browser/

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