Skip to content

Commit fa73b31

Browse files
committed
Add Safari iOS zoom prevention fixes
- Add -webkit-text-size-adjust: 100% to prevent auto text scaling - Set font-size: 16px on all inputs to prevent auto-zoom on focus
1 parent 66c4a93 commit fa73b31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/styles/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ html,
88
body {
99
overscroll-behavior: none;
1010
touch-action: pan-x pan-y;
11+
-webkit-text-size-adjust: 100%;
12+
text-size-adjust: 100%;
13+
}
14+
15+
/* Prevent Safari iOS auto-zoom on input focus (requires font-size >= 16px) */
16+
input,
17+
textarea,
18+
select {
19+
font-size: 16px;
1120
}
1221

1322
@layer components {

0 commit comments

Comments
 (0)