From 1a4a6efbc259efd1f6c653801f755defd3a5585a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=90=E9=A3=8E=E4=B8=80=E5=B2=B8?= <150827942+mufengyian@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:16:37 +0800 Subject: [PATCH] Fix iOS comment input zoom --- packages/comment-widget/src/comment-editor.ts | 1 + packages/comment-widget/uno.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/comment-widget/src/comment-editor.ts b/packages/comment-widget/src/comment-editor.ts index cda6186..9559398 100644 --- a/packages/comment-widget/src/comment-editor.ts +++ b/packages/comment-widget/src/comment-editor.ts @@ -238,6 +238,7 @@ export class CommentEditor extends LitElement { .tiptap { outline: none; border: none; + font-size: 16px; } .tiptap p { diff --git a/packages/comment-widget/uno.config.ts b/packages/comment-widget/uno.config.ts index bb5058f..3d7dd81 100644 --- a/packages/comment-widget/uno.config.ts +++ b/packages/comment-widget/uno.config.ts @@ -56,7 +56,7 @@ export default defineConfig({ ], shortcuts: { input: - 'px-3 py-0 text-sm rounded-base bg-transparent border h-12 border-muted-1 border-solid outline-none transition-all focus:border-primary-1 focus:shadow-input placeholder:text-text-3', + 'px-3 py-0 text-[16px] rounded-base bg-transparent border h-12 border-muted-1 border-solid outline-none transition-all focus:border-primary-1 focus:shadow-input placeholder:text-text-3', 'icon-button': 'inline-flex items-center gap-[0.1em] cursor-pointer', 'icon-button-icon': 'inline-flex items-center justify-center rounded-full transition-all duration-150 p-2 text-text-3 group-hover:bg-muted-3 group-hover:text-text-1',