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 eccb992c65..42e6e47e96 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 @@ -11,6 +11,7 @@ import type { BoardDTO } from 'services/api/types'; import AddBoardButton from './AddBoardButton'; import GalleryBoard from './GalleryBoard'; +import NoBoardBoard from './NoBoardBoard'; export const BoardsList = ({ isPrivate }: { isPrivate?: boolean }) => { const { t } = useTranslation(); @@ -78,24 +79,26 @@ export const BoardsList = ({ isPrivate }: { isPrivate?: boolean }) => { - <> - {!filteredBoards.length ? ( + + {(allowPrivateBoards && isPrivate) || !allowPrivateBoards ? ( + + ) : !filteredBoards.length ? ( {t('boards.noBoards', { boardType: isPrivate ? 'Private' : '' })} ) : ( - - {filteredBoards.map((board) => ( - - ))} - + <> )} - + + {filteredBoards.map((board) => ( + + ))} + diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx index a6d0ac5521..128b837623 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/BoardsListWrapper.tsx @@ -1,4 +1,4 @@ -import { Box, Spacer } from '@invoke-ai/ui-library'; +import { Box } from '@invoke-ai/ui-library'; import { useAppSelector } from 'app/store/storeHooks'; import { overlayScrollbarsParams } from 'common/components/OverlayScrollbars/constants'; import { OverlayScrollbarsComponent } from 'overlayscrollbars-react'; @@ -6,7 +6,6 @@ import type { CSSProperties } from 'react'; import { memo } from 'react'; import { BoardsList } from './BoardsList'; -import NoBoardBoard from './NoBoardBoard'; const overlayScrollbarsStyles: CSSProperties = { height: '100%', @@ -14,7 +13,6 @@ const overlayScrollbarsStyles: CSSProperties = { }; const BoardsListWrapper = () => { - const selectedBoardId = useAppSelector((s) => s.gallery.selectedBoardId); const allowPrivateBoards = useAppSelector((s) => s.config.allowPrivateBoards); return ( @@ -22,8 +20,6 @@ const BoardsListWrapper = () => { - - {allowPrivateBoards && } diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/NoBoardBoard.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/NoBoardBoard.tsx index ee18c0d2ca..5c81fbb190 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/NoBoardBoard.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/NoBoardBoard.tsx @@ -65,13 +65,15 @@ const NoBoardBoard = memo(({ isSelected }: Props) => { bg={isSelected ? 'base.850' : undefined} _hover={_hover} > - {/* iconified from public/assets/images/invoke-symbol-wht-lrg.svg */} - - - + + {/* iconified from public/assets/images/invoke-symbol-wht-lrg.svg */} + + + + {boardName}