Skip to content

Commit 3b3d47b

Browse files
Mary Hipphipsterusername
authored andcommitted
align project name with gallery header
1 parent 668bf4d commit 3b3d47b

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Flex, Link, Text } from '@invoke-ai/ui-library';
1+
import { Flex, Link, Spacer, Text } from '@invoke-ai/ui-library';
22
import { useStore } from '@nanostores/react';
33
import { $projectName, $projectUrl } from 'app/store/nanostores/projectId';
44
import { memo } from 'react';
@@ -9,15 +9,15 @@ export const GalleryHeader = memo(() => {
99

1010
if (projectName && projectUrl) {
1111
return (
12-
<Flex gap={2} w="full" alignItems="center" justifyContent="space-evenly" pe={2}>
12+
<Flex gap={2} alignItems="center" justifyContent="space-evenly" pe={2} w="50%">
1313
<Text fontSize="md" fontWeight="semibold" noOfLines={1} wordBreak="break-all" w="full" textAlign="center">
1414
<Link href={projectUrl}>{projectName}</Link>
1515
</Text>
1616
</Flex>
1717
);
1818
}
1919

20-
return null;
20+
return <Spacer />;
2121
});
2222

2323
GalleryHeader.displayName = 'GalleryHeader';

invokeai/frontend/web/src/features/gallery/components/GalleryPanelContent.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, Button, Collapse, Divider, Flex, IconButton, Spacer, useDisclosure } from '@invoke-ai/ui-library';
1+
import { Box, Button, Collapse, Divider, Flex, IconButton, useDisclosure } from '@invoke-ai/ui-library';
22
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
33
import { useScopeOnFocus } from 'common/hooks/interactionScopes';
44
import { GalleryHeader } from 'features/gallery/components/GalleryHeader';
@@ -52,18 +52,19 @@ const GalleryPanelContent = () => {
5252

5353
return (
5454
<Flex ref={ref} position="relative" flexDirection="column" h="full" w="full" tabIndex={-1}>
55-
<GalleryHeader />
5655
<Flex alignItems="center" w="full">
57-
<Button
58-
size="sm"
59-
variant="ghost"
60-
onClick={boardsListPanel.toggle}
61-
rightIcon={boardsListPanel.isCollapsed ? <PiCaretDownBold /> : <PiCaretUpBold />}
62-
>
63-
{boardsListPanel.isCollapsed ? t('boards.viewBoards') : t('boards.hideBoards')}
64-
</Button>
65-
<Spacer />
66-
<Flex h="full">
56+
<Flex w="25%">
57+
<Button
58+
size="sm"
59+
variant="ghost"
60+
onClick={boardsListPanel.toggle}
61+
rightIcon={boardsListPanel.isCollapsed ? <PiCaretDownBold /> : <PiCaretUpBold />}
62+
>
63+
{boardsListPanel.isCollapsed ? t('boards.viewBoards') : t('boards.hideBoards')}
64+
</Button>
65+
</Flex>
66+
<GalleryHeader />
67+
<Flex h="full" w="25%" justifyContent="flex-end">
6768
<GallerySettingsPopover />
6869
<IconButton
6970
size="sm"

0 commit comments

Comments
 (0)