fix(webui): keep touch form fields readable without focus zoom
This commit is contained in:
1 parent
3ff76cd808
commit
948ce38246
7 files changed
+63
-4
No files matched your search
@@ -91,7 +91,7 @@ function HostMenuItems({ picker }: { picker: HostPicker }) {
|
||||
<Search aria-hidden className="h-4 w-4 shrink-0 text-muted-foreground" />
|
||||
<input ref={search} aria-label={t("remote.searchHosts")} placeholder={t("remote.searchHosts")}
|
||||
value={query} onChange={(event) => 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" />
|
||||
</div> : <DropdownMenuLabel className="shrink-0">{t("remote.switchHost")}</DropdownMenuLabel>}
|
||||
<div ref={list} role="group" aria-label={t("remote.switchHost")}
|
||||
className="min-h-0 overflow-y-auto overscroll-contain scrollbar-thin scrollbar-track-transparent">
|
||||
|
||||
@@ -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,
|
||||
)}
|
||||
|
||||
@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
<input
|
||||
type={type}
|
||||
className={cn(
|
||||
"flex h-10 w-full rounded-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
||||
"touch-text-input flex h-10 w-full rounded-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
||||
formControlFocusClassName,
|
||||
className,
|
||||
)}
|
||||
|
||||
@@ -10,7 +10,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||
return (
|
||||
<textarea
|
||||
className={cn(
|
||||
"flex min-h-[60px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
||||
"touch-text-input flex min-h-[60px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
||||
formControlFocusClassName,
|
||||
className,
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user