diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index 048b1b4fd9..daa229e7c5 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -370,6 +370,7 @@ "deleteImage_other": "Delete {{count}} Images", "deleteImageBin": "Deleted images will be sent to your operating system's Bin.", "deleteImagePermanent": "Deleted images cannot be restored.", + "displayBoardSearch": "Display Board Search", "displaySearch": "Display Search", "download": "Download", "featuresWillReset": "If you delete this image, those features will immediately be reset.", diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx index 9dfb4a2860..1395248950 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsList.tsx @@ -1,4 +1,4 @@ -import { Flex, Icon, Text, useDisclosure } from '@invoke-ai/ui-library'; +import { Flex, Text } from '@invoke-ai/ui-library'; import { EMPTY_ARRAY } from 'app/store/constants'; import { useAppSelector } from 'app/store/storeHooks'; import { overlayScrollbarsParams } from 'common/components/OverlayScrollbars/constants'; @@ -8,12 +8,10 @@ import { OverlayScrollbarsComponent } from 'overlayscrollbars-react'; import type { CSSProperties } from 'react'; import { memo, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { PiCaretUpBold } from 'react-icons/pi'; import { useListAllBoardsQuery } from 'services/api/endpoints/boards'; import type { BoardDTO } from 'services/api/types'; import AddBoardButton from './AddBoardButton'; -import BoardsSearch from './BoardsSearch'; import GalleryBoard from './GalleryBoard'; import NoBoardBoard from './NoBoardBoard'; @@ -42,8 +40,7 @@ const BoardsList = () => { return ( <> - - + {allowPrivateBoards && ( <> @@ -53,7 +50,7 @@ const BoardsList = () => { - + {filteredPrivateBoards.map((board) => ( { const dispatch = useAppDispatch(); const galleryHeader = useStore($galleryHeader); const searchDisclosure = useDisclosure({ defaultIsOpen: false }); + const boardSearchDisclosure = useDisclosure({ defaultIsOpen: false }); const handleClickImages = useCallback(() => { dispatch(galleryViewChanged('images')); @@ -50,51 +54,73 @@ const ImageGalleryContent = () => { dispatch(galleryViewChanged('assets')); }, [dispatch]); + const panelGroupRef = useRef(null); + return ( - {galleryHeader} - - - - - - - - - - - {t('parameters.images')} - - - - - - {t('gallery.assets')} - - - - } - fontSize={16} - textAlign="center" - color="base.400" - variant="unstyled" - minW="unset" - /> - - - + {galleryHeader} + + + + } + size="sm" + /> - - - - - - - + + + + + + + + + + + + + + + + + + {t('parameters.images')} + + + + + + {t('gallery.assets')} + + + + } + fontSize={16} + textAlign="center" + color="base.400" + variant="unstyled" + minW="unset" + /> + + + + + + + + + + + + + ); };