Skip to content

fix: prevent textarea auto-zoom on mobile#48

Merged
feddernico merged 2 commits into
mainfrom
fix/mobile-no-zoom
Jun 19, 2026
Merged

fix: prevent textarea auto-zoom on mobile#48
feddernico merged 2 commits into
mainfrom
fix/mobile-no-zoom

Conversation

@feddernico

Copy link
Copy Markdown
Owner

Problem

On mobile devices (especially iOS Safari), tapping the editor textarea triggers automatic browser zoom. This breaks the layout and makes editing difficult because the font-size was set to 14px, which is below the 16px threshold that mobile browsers use to decide whether to auto-zoom.

Solution

  • Added font-size: 16px for textarea on viewports below 980px
  • Desktop keeps the original 14px font-size
  • No functional changes, CSS-only fix

Testing

Open the app on a mobile device or use browser dev tools mobile emulation, tap the textarea, and verify no zoom occurs.

Federico Viscioletti added 2 commits June 3, 2026 10:18
Increase textarea font-size to 16px on mobile viewports (<980px) to prevent iOS Safari and other mobile browsers from triggering automatic zoom when user taps the editor.
@feddernico feddernico merged commit 836dbc9 into main Jun 19, 2026
5 checks passed
@feddernico feddernico deleted the fix/mobile-no-zoom branch June 19, 2026 21:47
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

Successfully merging this pull request may close these issues.

1 participant