Skip to content

Commit c44c28e

Browse files
feat(ui): workflow library modal styling
1 parent e1f7359 commit c44c28e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Divider,
23
Flex,
34
Modal,
45
ModalBody,
@@ -16,16 +17,20 @@ import { WorkflowList } from './WorkflowList';
1617
export const WorkflowLibraryModal = () => {
1718
const workflowLibraryModal = useWorkflowLibraryModal();
1819
return (
19-
<Modal isOpen={workflowLibraryModal.isOpen} onClose={workflowLibraryModal.close} size="5xl">
20+
<Modal isOpen={workflowLibraryModal.isOpen} onClose={workflowLibraryModal.close} isCentered>
2021
<ModalOverlay />
21-
<ModalContent>
22+
<ModalContent
23+
w="calc(100% - var(--invoke-sizes-40))"
24+
maxW="calc(100% - var(--invoke-sizes-40))"
25+
h="calc(100% - var(--invoke-sizes-40))"
26+
maxH="calc(100% - var(--invoke-sizes-40))"
27+
>
2228
<ModalHeader>Workflow Library</ModalHeader>
2329
<ModalCloseButton />
2430
<ModalBody pb={6}>
25-
<Flex gap={4}>
26-
<Flex flexDir="column" gap={4}>
27-
<WorkflowLibrarySideNav />
28-
</Flex>
31+
<Flex gap={4} h="100%">
32+
<WorkflowLibrarySideNav />
33+
<Divider orientation="vertical" />
2934
<Flex flexDir="column" flex={1} gap={6}>
3035
<WorkflowLibraryTopNav />
3136
<WorkflowList />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const WorkflowLibrarySideNav = () => {
3838
}, [categoryOptions, categories]);
3939

4040
return (
41-
<Flex flexDir="column" gap={2} borderRight="1px solid" borderColor="base.400" h="full" pr={4}>
41+
<Flex flexDir="column" gap={2} h="full">
4242
<Button
4343
variant="ghost"
4444
fontWeight="bold"

0 commit comments

Comments
 (0)