Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Broken mobile responsiveness in iOS only

I’m experiencing a weird issue with the mobile responsive layout of a website.
The address is https://melec.vercel.app/

On desktop using dev tools > responsive, it works correctly, also on any android device you get the correct mobile experience but in iOS devices (tested on 2 iphones) the website renders incorrectly, it seems to have the double of the actual available screen width.

For reference I’m using tailwindcss, tailwindui and nextjs.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

In this image you can see the scroll bar for horizontal movement.
Picture 1

Here you can see how I can freely move horizontally, this doesn’t happen on dev tools or android devices.
Picture 2

Also when I press the mobile burger the whole layout shrinks a bit.
Picture 3

>Solution :

it is because the top part "flex-shrink-0 flex items-center".
I entered a "max-width: 100%;".

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading