File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
invokeai/frontend/web/src
common/components/InvControl
features/nodes/components/flow/nodes/Invocation Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export const InvControl = memo(
4545 orientation = { orientation }
4646 isDisabled = { isDisabled }
4747 { ...formControlProps }
48+ { ...ctx . controlProps }
4849 >
4950 < Flex className = "invcontrol-label-wrapper" >
5051 { label && (
Original file line number Diff line number Diff line change 1- import type { FormLabelProps } from '@chakra-ui/react' ;
1+ import type { FormControlProps , FormLabelProps } from '@chakra-ui/react' ;
22import type { PropsWithChildren } from 'react' ;
33import { createContext , memo } from 'react' ;
44
55export type InvControlGroupProps = {
66 labelProps ?: FormLabelProps ;
7+ controlProps ?: FormControlProps ;
78 isDisabled ?: boolean ;
89 orientation ?: 'horizontal' | 'vertical' ;
910} ;
Original file line number Diff line number Diff line change 1+ import type { ChakraProps } from '@chakra-ui/react' ;
12import { Flex } from '@chakra-ui/react' ;
3+ import { InvControlGroup } from 'common/components/InvControl/InvControlGroup' ;
24import { useHasImageOutput } from 'features/nodes/hooks/useHasImageOutput' ;
35import { DRAG_HANDLE_CLASSNAME } from 'features/nodes/types/constants' ;
46import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus' ;
@@ -11,6 +13,8 @@ type Props = {
1113 nodeId : string ;
1214} ;
1315
16+ const props : ChakraProps = { w : 'unset' } ;
17+
1418const InvocationNodeFooter = ( { nodeId } : Props ) => {
1519 const hasImageOutput = useHasImageOutput ( nodeId ) ;
1620 const isCacheEnabled = useFeatureStatus ( 'invocationCache' ) . isFeatureEnabled ;
@@ -20,13 +24,16 @@ const InvocationNodeFooter = ({ nodeId }: Props) => {
2024 layerStyle = "nodeFooter"
2125 w = "full"
2226 borderBottomRadius = "base"
27+ gap = { 4 }
2328 px = { 2 }
2429 py = { 0 }
2530 h = { 8 }
2631 justifyContent = "space-between"
2732 >
28- { isCacheEnabled && < UseCacheCheckbox nodeId = { nodeId } /> }
29- { hasImageOutput && < SaveToGalleryCheckbox nodeId = { nodeId } /> }
33+ < InvControlGroup controlProps = { props } labelProps = { props } >
34+ { isCacheEnabled && < UseCacheCheckbox nodeId = { nodeId } /> }
35+ { hasImageOutput && < SaveToGalleryCheckbox nodeId = { nodeId } /> }
36+ </ InvControlGroup >
3037 </ Flex >
3138 ) ;
3239} ;
You can’t perform that action at this time.
0 commit comments