-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Responsive layouts not working on mobile phone #5122
Comments
This is not a Next.js bug. You probably forgot to add the
|
had a similar issue, @timneutkens pointed in the right direction, thanks a bunch! |
🙏 this bites a lot of people doing responsive websites unfortunately 😅 |
How can I add meta tags in nextjs? |
@Destructor1702 https://nextjs.org/docs#populating-head |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
I have created a next js application. I have used both semantic ui and bootstrap to create some simple responsive layouts in pages/index.js
These layouts are pretty much just some grids that should collapse on smaller screens such as mobiles.
I have deployed the app to a server. I'm using pm2 to manage the app and nginx as a reverse proxy.
Everything works perfectly on a computer. You can shrink the screen and at the breakpoint the grids collapse the way that they should. If you shrink the browser and load the app it looks perfect.
However when I access the site from my phone's web browser (chrome) it does not collapse. So everything looks very small and squashed.
My phone is a samsung galaxy A5 (android)
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Here is a repo to the code I have deployed:
https://github.com/dbrowne24/bootstrap-nextjs-issues
This example uses bootstrap, but the same thing happens when using semantic-ui-reacts responsive layouts.
Expected behavior
Expected the responsive layout to work on both mobile and desktop.
Screenshots
Here are some screen shots that might help:
Computer Full Screen:
Computer Window shrank:
Mobile Phone (no responsiveness)
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: