mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Fix more cases of annoying zoom
This commit is contained in:
@@ -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)}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user