fix: prevent iOS zoom on input focus and pinch-to-zoom

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-02-26 00:33:13 +01:00
co-authored by Claude Opus 4.6
parent 209cc74514
commit c0368fc1a9
3 changed files with 33 additions and 1 deletions
+18
View File
@@ -20,6 +20,24 @@ html.mobile-init .file-browser-panel {
display: none !important;
}
/* ============================================================================
iOS Zoom Prevention (all mobile/tablet sizes)
iOS Safari ignores user-scalable=no since iOS 10.
font-size >= 16px on inputs prevents auto-zoom on focus.
touch-action: manipulation prevents double-tap zoom.
============================================================================ */
@media (max-width: 768px) {
/* Prevent iOS auto-zoom on input focus (triggers at font-size < 16px) */
input, textarea, select {
font-size: 16px !important;
}
/* Prevent double-tap zoom globally */
html {
touch-action: manipulation;
}
}
/* ============================================================================
Tablet Breakpoint (430px - 768px)
============================================================================ */