mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 15:39:41 +02:00
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:
@@ -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)
|
||||
============================================================================ */
|
||||
|
||||
Reference in New Issue
Block a user