fix(webui): give Safari a shared viewport and clipboard foundation
Safari 17+ needs dynamic viewport units, a 16px field floor, and clipboard helpers that still work on LAN HTTP.
This commit is contained in:
8 files changed
+171
-44
No files matched your search
@@ -203,6 +203,7 @@ export function FloatingLabelInput({
|
||||
ref={attach}
|
||||
id={fieldId}
|
||||
name={name}
|
||||
data-ui-control=""
|
||||
type={type}
|
||||
value={value}
|
||||
defaultValue={defaultValue}
|
||||
@@ -228,7 +229,7 @@ export function FloatingLabelInput({
|
||||
fieldProps.onChange(event);
|
||||
onChange?.(event.currentTarget.value, event);
|
||||
}}
|
||||
className={`absolute inset-0 h-full w-full rounded-[9px] bg-transparent px-3 py-0 text-base leading-5 text-foreground outline-none focus-visible:outline-none disabled:cursor-not-allowed sm:text-[13px] ${
|
||||
className={`absolute inset-0 h-full w-full appearance-none rounded-[9px] bg-transparent px-3 py-0 text-base leading-5 text-foreground outline-none focus-visible:outline-none disabled:cursor-not-allowed ${
|
||||
endAdornment ? "pr-16" : ""
|
||||
}`}
|
||||
/>
|
||||
@@ -248,7 +249,7 @@ export function FloatingLabelInput({
|
||||
scale: raised ? SHRINK : 1,
|
||||
}}
|
||||
transition={move}
|
||||
style={{ originX: 0, originY: 0, willChange: "transform" }}
|
||||
style={{ originX: 0, originY: 0 }}
|
||||
className={`absolute left-3 top-[32px] block cursor-text select-none text-base leading-5 sm:text-[13px] sm:leading-[16px] ${
|
||||
invalid
|
||||
? "text-destructive"
|
||||
|
||||
@@ -8,7 +8,7 @@ const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLI
|
||||
ref={ref}
|
||||
data-ui-control=""
|
||||
className={cn(
|
||||
'flex h-10 w-full min-w-0 rounded-md border border-border bg-transparent px-3 py-1 text-sm shadow-xs transition-[color,box-shadow] outline-none',
|
||||
'flex h-10 w-full min-w-0 appearance-none rounded-md border border-border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm',
|
||||
'file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium',
|
||||
'placeholder:text-muted-foreground',
|
||||
'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/40',
|
||||
|
||||
@@ -10,7 +10,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, React.TextareaHTMLAttribu
|
||||
ref={ref}
|
||||
data-ui-control=""
|
||||
className={cn(
|
||||
'flex min-h-10 w-full min-w-0 rounded-md border border-border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none',
|
||||
'flex min-h-10 w-full min-w-0 appearance-none rounded-md border border-border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm',
|
||||
'placeholder:text-muted-foreground',
|
||||
'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/40',
|
||||
'disabled:cursor-not-allowed disabled:opacity-50',
|
||||
|
||||
Reference in new issue
Block a user