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
+1 -1
View File
@@ -49,7 +49,7 @@ const SearchBar = () => {
<input <input
type="search" type="search"
id="table-search" id="table-search"
className="block rounded-lg border border-gray-300 bg-gray-50 p-2.5 px-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500" className="block rounded-lg border border-gray-300 bg-gray-50 p-2.5 px-10 text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
placeholder={t("searchPlaceholder")} placeholder={t("searchPlaceholder")}
value={searchString} value={searchString}
onChange={(e) => updateSearchString(e.target.value)} onChange={(e) => updateSearchString(e.target.value)}
+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", indicatorSeparator: () => "w-px text-gray-900 dark:text-white",
control: (state) => control: (state) =>
twMerge( 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", "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", "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) const optionValue = isNil(value)
? null ? null
: isArray(value) : isArray(value)
? // @ts-ignore - this is too complex for TS to understand ? // @ts-ignore - this is too complex for TS to understand
value.map(valueToOption) value.map(valueToOption)
: valueToOption(value); : valueToOption(value);
return ( return (
<Select <Select