Skip to content

VuePress website doesn't seem to resize to mobile view on Mobile Firefox #2723

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

Closed
1 task done
pbek opened this issue Dec 1, 2020 · 6 comments
Closed
1 task done

Comments

@pbek
Copy link

pbek commented Dec 1, 2020

  • I confirm that this is an issue rather than a question.

Bug report

The VuePress website (and https://www.qownnotes.org/changelog.html, which was also built with the awesome VuePress) doesn't seem to resize to "mobile view" on Mobile Firefox.

image

Steps to reproduce

  • open https://vuepress.vuejs.org/config/ on Mobile Firefox (Android) or on the Desktop in the dev tools with "responsive device mode" switched to a Galaxy S9
  • see that the website doesn't use the website's responsiveness

What is expected?

  • rendered webpage uses responsiveness like in Mobile Chrome

What is actually happening?

  • webpage looks like on a desktop screen

Other relevant information

  • if you resize the virtual screen in Desktop Firefox in the dev tools the page switches to "mobile view", like expected

image

Reference:

@myuki
Copy link

myuki commented Dec 13, 2020

Add viewport manually can workaround it

module.exports = {
  head: [
    ["meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }]
  ]
}

See Also: #2369 #2607

@pbek
Copy link
Author

pbek commented Dec 13, 2020

Thank you for the hint, @myuki. The viewport was the first thing I thought of too, but a quick curl https://vuepress.vuejs.org/config/ | grep "viewport" showed me <meta name="viewport" content="width=device-width,initial-scale=1"> and the issue still persisted. 😅

@pbek
Copy link
Author

pbek commented Dec 13, 2020

image

@pbek
Copy link
Author

pbek commented Dec 13, 2020

Or are we talking about the 1.0 instead of 1?

@pbek
Copy link
Author

pbek commented Dec 13, 2020

Now I see, the view-port is removed by javascript, now that's tricky! 😆 I'll test the setting, thank you very much!

@pbek
Copy link
Author

pbek commented Dec 13, 2020

That did it! Thanks a lot for the workaround!

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

2 participants