Skip to content

Commit 6c9661a

Browse files
fix(ui): workflow library overflow
1 parent 6723725 commit 6c9661a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

invokeai/frontend/web/src/features/nodes/components/sidePanel/workflow/WorkflowLibrary/WorkflowLibrarySideNav.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ButtonProps, CheckboxProps } from '@invoke-ai/ui-library';
2-
import { Box, Button, Checkbox, Collapse, Flex, Spacer, Text } from '@invoke-ai/ui-library';
2+
import { Button, Checkbox, Collapse, Flex, Spacer, Text } from '@invoke-ai/ui-library';
33
import { useStore } from '@nanostores/react';
44
import { $workflowCategories } from 'app/store/nanostores/workflowCategories';
55
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
@@ -66,7 +66,7 @@ export const WorkflowLibrarySideNav = () => {
6666

6767
return (
6868
<Flex flexDir="column" h="full">
69-
<Box w="full" pb={2}>
69+
<Flex w="full" pb={2}>
7070
<CategoryButton isSelected={isYourWorkflowsSelected} onClick={selectYourWorkflows}>
7171
{t('workflows.yourWorkflows')}
7272
</CategoryButton>
@@ -96,13 +96,13 @@ export const WorkflowLibrarySideNav = () => {
9696
</Flex>
9797
</Collapse>
9898
)}
99-
</Box>
100-
<Box w="full">
99+
</Flex>
100+
<Flex w="full" h="full" minH={0} overflow="hidden" flexDir="column">
101101
<CategoryButton isSelected={isDefaultWorkflowsExclusivelySelected} onClick={selectDefaultWorkflows}>
102102
{t('workflows.browseWorkflows')}
103103
</CategoryButton>
104104
<Collapse in={isDefaultWorkflowsExclusivelySelected}>
105-
<Flex flexDir="column" gap={2} pl={4} py={2} overflow="hidden">
105+
<Flex flexDir="column" gap={2} pl={4} py={2} overflow="hidden" h="100%" minH={0}>
106106
<Button
107107
isDisabled={!isDefaultWorkflowsExclusivelySelected || selectedTags.length === 0}
108108
onClick={resetTags}
@@ -128,7 +128,7 @@ export const WorkflowLibrarySideNav = () => {
128128
</Flex>
129129
</Flex>
130130
</Collapse>
131-
</Box>
131+
</Flex>
132132
</Flex>
133133
);
134134
};

0 commit comments

Comments
 (0)