diff --git a/docs/webui.md b/docs/webui.md index ee7a2672e..704c33665 100644 --- a/docs/webui.md +++ b/docs/webui.md @@ -207,6 +207,10 @@ magnified area; normal fitting resumes when you return to the default zoom. Non-touch desktop and native-host layout remain unchanged. +On touch devices, compact text fields use a readable 16px minimum baseline to +avoid Safari automatically zooming the page on focus. Desktop field density +and manual page zoom remain unchanged. + On touch devices, preview tab controls and the full-screen image viewer's close button use larger touch areas without enlarging the icons. Preview tabs remain horizontally scrollable when space is diff --git a/webui/src/components/remote/HostSwitcher.tsx b/webui/src/components/remote/HostSwitcher.tsx index ea5baba7d..60887c155 100644 --- a/webui/src/components/remote/HostSwitcher.tsx +++ b/webui/src/components/remote/HostSwitcher.tsx @@ -91,7 +91,7 @@ function HostMenuItems({ picker }: { picker: HostPicker }) { setQuery(event.target.value)} autoComplete="off" spellCheck={false} - className="h-7 min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted-foreground" /> + className="touch-text-input h-7 min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted-foreground" /> : {t("remote.switchHost")}}
diff --git a/webui/src/components/thread/PromptNavigator.tsx b/webui/src/components/thread/PromptNavigator.tsx index d0a02cfff..b42e3e288 100644 --- a/webui/src/components/thread/PromptNavigator.tsx +++ b/webui/src/components/thread/PromptNavigator.tsx @@ -83,7 +83,7 @@ export function PromptNavigator({ aria-label={t("thread.promptNavigator.search")} placeholder={t("thread.promptNavigator.search")} className={cn( - "h-10 w-full rounded-full border border-border bg-background pl-9 pr-3 text-sm", + "touch-text-input h-10 w-full rounded-full border border-border bg-background pl-9 pr-3 text-sm", "transition-colors", formControlFocusClassName, )} diff --git a/webui/src/components/ui/input.tsx b/webui/src/components/ui/input.tsx index fc889032f..db9a0683c 100644 --- a/webui/src/components/ui/input.tsx +++ b/webui/src/components/ui/input.tsx @@ -11,7 +11,7 @@ const Input = React.forwardRef( ( return (