diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsForm.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsForm.tsx index 48b8bb0dda..7e243e6c60 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsForm.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsForm.tsx @@ -3,6 +3,7 @@ import { ChangeEventHandler, useCallback, useState } from 'react'; import { useLazyScanModelsQuery } from '../../../../../services/api/endpoints/models'; import { useTranslation } from 'react-i18next'; import { ScanModelsResults } from './ScanModelsResults'; +import ScrollableContent from '../../../../../common/components/OverlayScrollbars/ScrollableContent'; export const ScanModelsForm = () => { const [scanPath, setScanPath] = useState(''); @@ -31,7 +32,7 @@ export const ScanModelsForm = () => { }, []); return ( - <> + @@ -47,8 +48,7 @@ export const ScanModelsForm = () => { {!!errorMessage.length && {errorMessage}} - {results && } - + ); }; diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsResults.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsResults.tsx index 9bccf8a0d7..58cddda2ec 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsResults.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/AddModelPanel/ScanModels/ScanModelsResults.tsx @@ -12,6 +12,7 @@ import { import { t } from 'i18next'; import { ChangeEventHandler, useCallback, useMemo, useState } from 'react'; import { PiXBold } from 'react-icons/pi'; +import ScrollableContent from '../../../../../common/components/OverlayScrollbars/ScrollableContent'; export const ScanModelsResults = ({ results }: { results: string[] }) => { const [searchTerm, setSearchTerm] = useState(''); @@ -37,8 +38,8 @@ export const ScanModelsResults = ({ results }: { results: string[] }) => { return ( <> - - + + Scan Results @@ -64,13 +65,16 @@ export const ScanModelsResults = ({ results }: { results: string[] }) => { )} - - {filteredResults.map((result) => ( - - {result.split('\\').slice(-1)[0]} - {result} - - ))} + + + {filteredResults.map((result) => ( + + {result.split('\\').slice(-1)[0]} + {result} + + ))} + + ); diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ImportModels.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ImportModels.tsx index 88423758e6..2c95de4827 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ImportModels.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ImportModels.tsx @@ -1,4 +1,4 @@ -import { Box, Divider, Heading, Tab, TabList, TabPanel, TabPanels, Tabs } from '@invoke-ai/ui-library'; +import { Box, Divider, Heading, Tab, Flex, TabList, TabPanel, TabPanels, Tabs } from '@invoke-ai/ui-library'; import { ImportQueue } from './AddModelPanel/ImportQueue'; import { SimpleImport } from './AddModelPanel/SimpleImport'; @@ -6,31 +6,31 @@ import { ScanModels } from './AddModelPanel/ScanModels/ScanModels'; export const ImportModels = () => { return ( - - + + Add Model - - + + Simple Advanced Scan - + Advanced Import Placeholder - + - - + + - + ); };