Fix more cases of annoying zoom

This commit is contained in:
Timothy Armes
2024-09-30 08:29:23 +02:00
parent f8cd2612b5
commit aa05a3ce0b
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -40,7 +40,7 @@ export const classNames = <Option, IsMulti extends boolean = false>(
indicatorSeparator: () => "w-px text-gray-900 dark:text-white",
control: (state) =>
twMerge(
"group flex w-full items-center justify-between rounded-lg border p-3 text-sm",
"group flex w-full items-center justify-between rounded-lg border p-3",
"border-gray-300 bg-gray-50 text-gray-900 shadow-sm focus-within:border-primary-500 focus-within:ring-primary-500",
"dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus-within:border-primary-500 dark:focus-within:ring-primary-500",
@@ -159,9 +159,9 @@ export const SelectField = <
const optionValue = isNil(value)
? null
: isArray(value)
? // @ts-ignore - this is too complex for TS to understand
value.map(valueToOption)
: valueToOption(value);
? // @ts-ignore - this is too complex for TS to understand
value.map(valueToOption)
: valueToOption(value);
return (
<Select