-
Notifications
You must be signed in to change notification settings - Fork 0
Bug: iPhone Safari zooms into composer and crops input on focus #7
Description
Summary
On iPhone Safari, focusing the chat composer can trigger browser zoom and leave part of the composer cropped off-screen once the keyboard opens.
Environment
- Device: iPhone
- Browser: Safari
- Area: chat composer / message input
Steps to reproduce
- Open the app on an iPhone in Safari.
- Navigate to any chat thread.
- Tap into the chat composer.
- Wait for the on-screen keyboard to appear.
Actual behavior
Safari zooms into the page when the composer receives focus, and part of the composer can be cropped or pushed out of view.
Expected behavior
Focusing the composer should keep the input fully visible without triggering browser zoom. Users should still be able to zoom the page manually when they are not focused inside the composer.
Likely cause
The composer renders at 14px on mobile. On iPhone Safari, editable controls below 16px commonly trigger focus zoom.
Proposed fix
Use 16px composer text on mobile and keep the existing smaller composer sizing from sm and up.
Before/after phone recording checklist
Before (current broken behavior)
- Start screen recording on iPhone.
- Open the app in Safari at normal page scale.
- Show the full thread view and composer.
- Tap into the composer.
- Capture the moment Safari zooms in.
- Show that part of the composer is cropped or harder to use once the keyboard is open.
After (fixed behavior)
- Start screen recording on the build with the fix.
- Open the same thread in Safari.
- Show the full thread view and composer before focus.
- Tap into the composer.
- Capture that the keyboard opens without Safari zooming the page.
- Show that the composer remains fully visible and usable.
- Optionally pinch-zoom elsewhere on the page to demonstrate that manual zoom is still available outside the focused input.
Notes
This is worth documenting separately from general small-screen layout issues because it is specifically about iPhone Safari focus zoom behavior and accessibility-sensitive zoom expectations.