Fixing iPhone Safari’s Automatic Zoom on Small Input FieldsFixing iPhone Safari’s Automatic Zoom on Small Input Fields
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I've known about Safari zooming into small input fields on iPhone for years. Somehow, I still managed to use 13px fields in my SideShift concept.
The brief panel looked fine on my laptop. Then I opened it on my iPhone and tapped an input. The whole page zoomed in, and I had to pinch back out to see the form properly.
I was paying so much attention to how the panel looked on smaller screens that I completely missed the input font size.
The fix was just 16px for inputs on touch screens, while keeping 13px elsewhere. Code's in the screenshot.
Glad I caught it while testing on an actual phone before shipping.
And with AI helping me write more code these days, I still don't want to skip that part. Things can look perfectly fine on my laptop and behave very differently on an actual device.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started