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 6f37dbcdb5..f3aa7e788f 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 @@ -3,7 +3,6 @@ import { EMPTY_ARRAY } from 'app/store/constants'; import { useAppSelector } from 'app/store/storeHooks'; import { overlayScrollbarsParams } from 'common/components/OverlayScrollbars/constants'; import DeleteBoardModal from 'features/gallery/components/Boards/DeleteBoardModal'; -import GallerySettingsPopover from 'features/gallery/components/GallerySettingsPopover/GallerySettingsPopover'; import { selectListBoardsQueryArgs } from 'features/gallery/store/gallerySelectors'; import { OverlayScrollbarsComponent } from 'overlayscrollbars-react'; import type { CSSProperties } from 'react'; @@ -23,7 +22,12 @@ const overlayScrollbarsStyles: CSSProperties = { width: '100%', }; -const BoardsList = () => { +type Props = { + isOpen: boolean; +}; + +const BoardsList = (props: Props) => { + const { isOpen } = props; const selectedBoardId = useAppSelector((s) => s.gallery.selectedBoardId); const boardSearchText = useAppSelector((s) => s.gallery.boardSearchText); const allowPrivateBoards = useAppSelector((s) => s.config.allowPrivateBoards); @@ -45,88 +49,87 @@ const BoardsList = () => { return ( <> - - + + - - - {allowPrivateBoards && ( - <> - - - - - {t('boards.private')} - - - - - - - - {allowPrivateBoards && } - {filteredPrivateBoards.map((board) => ( - - ))} + {allowPrivateBoards && ( + <> + + + + + {t('boards.private')} + - - - - )} - - - - - {allowPrivateBoards ? t('boards.shared') : t('boards.boards')} - - - - - - - - {!allowPrivateBoards && } - {filteredSharedBoards.map((board) => ( - - ))} + + + + + + {allowPrivateBoards && } + {filteredPrivateBoards.map((board) => ( + + ))} + + + + + )} + + + + + {allowPrivateBoards ? t('boards.shared') : t('boards.boards')} + - - - + + + + + + {!allowPrivateBoards && } + {filteredSharedBoards.map((board) => ( + + ))} + + + + + ); diff --git a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx b/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx index 367bd47008..7b3d2e3537 100644 --- a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx @@ -32,7 +32,6 @@ const GalleryBoardName = (props: Props) => { w="full" justifyContent="center" alignItems="center" - px={2} fontSize="md" color="base.50" >