diff --git a/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx b/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx index 966e110019..82065d83e3 100644 --- a/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx +++ b/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx @@ -53,7 +53,7 @@ function ThemeLocaleProvider({ children }: ThemeLocaleProviderProps) { }, [direction]); return ( - + {children} diff --git a/invokeai/frontend/web/src/common/components/IAIMantineSelect.tsx b/invokeai/frontend/web/src/common/components/IAIMantineSelect.tsx new file mode 100644 index 0000000000..8f25e4b197 --- /dev/null +++ b/invokeai/frontend/web/src/common/components/IAIMantineSelect.tsx @@ -0,0 +1,11 @@ +import { Select, SelectProps } from '@mantine/core'; +import { memo } from 'react'; + +type IAISelectProps = SelectProps; + +const IAIMantineSelect = (props: IAISelectProps) => { + const { searchable = true, ...rest } = props; + return ); diff --git a/invokeai/frontend/web/src/features/system/components/ModelSelect.tsx b/invokeai/frontend/web/src/features/system/components/ModelSelect.tsx index cedc0d48f3..69407b6e61 100644 --- a/invokeai/frontend/web/src/features/system/components/ModelSelect.tsx +++ b/invokeai/frontend/web/src/features/system/components/ModelSelect.tsx @@ -3,10 +3,10 @@ import { isEqual } from 'lodash-es'; import { ChangeEvent, memo, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; -import { Select } from '@mantine/core'; import { RootState } from 'app/store/store'; import { useAppDispatch, useAppSelector } from 'app/store/storeHooks'; import { IAICustomSelectOption } from 'common/components/IAICustomSelect'; +import IAIMantineSelect from 'common/components/IAIMantineSelect'; import { generationSelector } from 'features/parameters/store/generationSelectors'; import { modelSelected } from 'features/parameters/store/generationSlice'; import { selectModelsAll, selectModelsById } from '../store/modelSlice'; @@ -62,12 +62,11 @@ const ModelSelect = () => { // ); return ( -