From 74c8e8f7e4586a317d39d71580e01976abaa791d Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Sun, 10 May 2026 02:05:31 +0800 Subject: [PATCH] fix: prevent iOS input focus zoom (#1033) fix: prevent ios input focus zoom --- CHANGELOG.md | 1 + CHANGELOG_EN.md | 1 + frontend/src/App.vue | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40e1de3e..0417fe5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - fix: |Address| 管理员邮箱地址列表与用户绑定地址列表不再返回已存储的地址密码哈希值,避免列表接口暴露敏感字段 - fix: |AI 提取| 将 AI 邮件识别默认 Workers AI 模型切换为支持 JSON Mode 且未弃用的 `@cf/meta/llama-3.1-8b-instruct-fast`,并在文档中补充 `@cf/zai-org/glm-4.7-flash` 结构化输出兼容性提示(issue #1029) - fix: |CI| 将 GitHub Actions 与 e2e Docker 镜像统一升级到 Node.js 24,适配 Wrangler 4.90.0 的运行时要求 +- fix: |Frontend| 修复 iOS Safari 点击输入框时因移动端表单控件字号过小导致页面自动放大的问题 ### Improvements diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index 1742d4ea..6c285064 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -18,6 +18,7 @@ - fix: |Address| Stop returning stored address password hashes from the admin address list and user bound-address list APIs to avoid exposing sensitive fields - fix: |AI Extract| Switch the default Workers AI model for AI email recognition to the JSON Mode-compatible, non-deprecated `@cf/meta/llama-3.1-8b-instruct-fast`, and document structured-output compatibility guidance for `@cf/zai-org/glm-4.7-flash` (issue #1029) - fix: |CI| Upgrade GitHub Actions and e2e Docker images to Node.js 24 to satisfy Wrangler 4.90.0 runtime requirements +- fix: |Frontend| Prevent iOS Safari from auto-zooming the page when focusing mobile form controls with small font sizes ### Improvements diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 0add26c4..d51764c7 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -129,6 +129,16 @@ onMounted(async () => { margin-left: 10px; margin-right: 10px; } + +@media (hover: none) and (pointer: coarse) and (max-width: 1024px) { + :where(input, textarea, select, [contenteditable="true"]) { + font-size: 16px !important; + } + + :where(.n-input, .n-input-number, .n-base-selection, .n-input-group-label) { + --n-font-size: 16px !important; + } +}