ui(mobile): block pinch-zoom and iOS input auto-zoom
- index.html: tighten the viewport meta with maximum-scale=1, user-scalable=no, viewport-fit=cover so pinch-zoom is disabled on browsers that honor the hint (Android Chrome). - SearchPanel: bump the mobile search input from text-sm (14px) to text-base (16px). iOS Safari auto-zooms inputs whose font-size is below 16px on focus, which widened the viewport and let the user pan horizontally; 16px stops that behavior at the source.
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
|
||||
/>
|
||||
<meta name="theme-color" content="#08070c" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<meta name="application-name" content="ARK 资料库" />
|
||||
|
||||
Reference in New Issue
Block a user