From 2f2cc309a3f7cd095a62008aab82a85d67145956 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Wed, 3 Dec 2025 21:01:17 +0000 Subject: [PATCH] Fix iOS Safari auto-zoom on input fields - Changed all input/textarea/select font-size from text-sm to text-base (16px minimum) - Added blur handler to reset viewport zoom on InlineItemCreate - Prevents iOS Safari from auto-zooming when focusing on form fields - Ensures zoom resets properly when closing forms --- components/InlineItemCreate.tsx | 12 +++++++++++- components/ItemForm.tsx | 12 ++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/components/InlineItemCreate.tsx b/components/InlineItemCreate.tsx index 74aca76..8cc4221 100644 --- a/components/InlineItemCreate.tsx +++ b/components/InlineItemCreate.tsx @@ -63,6 +63,10 @@ export default function InlineItemCreate({ listId }: InlineItemCreateProps) { const handleCancel = () => { setTitle('') setIsCreating(false) + // Reset zoom on iOS Safari + if (document.activeElement instanceof HTMLElement) { + document.activeElement.blur() + } } const handleKeyDown = (e: React.KeyboardEvent) => { @@ -71,6 +75,11 @@ export default function InlineItemCreate({ listId }: InlineItemCreateProps) { } } + const handleBlur = () => { + // Force viewport reset on iOS Safari + window.scrollTo(0, 0) + } + if (!isCreating) { return (