File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
invokeai/frontend/web/src/features/nodes/components/sidePanel/builder Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const ContainerElement = memo(({ id }: { id: string }) => {
50
50
ContainerElement . displayName = 'ContainerElementComponent' ;
51
51
52
52
const containerViewModeSx : SystemStyleObject = {
53
- gap : 4 ,
53
+ gap : 2 ,
54
54
'&[data-self-layout="column"]' : {
55
55
flexDir : 'column' ,
56
56
alignItems : 'stretch' ,
@@ -197,7 +197,7 @@ const rootViewModeSx: SystemStyleObject = {
197
197
borderRadius : 'base' ,
198
198
w : 'full' ,
199
199
h : 'full' ,
200
- gap : 4 ,
200
+ gap : 2 ,
201
201
display : 'flex' ,
202
202
flex : 1 ,
203
203
maxW : '768px' ,
@@ -232,6 +232,7 @@ RootContainerElementViewMode.displayName = 'RootContainerElementViewMode';
232
232
233
233
const rootEditModeSx : SystemStyleObject = {
234
234
...rootViewModeSx ,
235
+ gap : 4 ,
235
236
'&[data-is-dragging-over="true"]' : {
236
237
opacity : 1 ,
237
238
bg : 'base.850' ,
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ const sx: SystemStyleObject = {
20
20
flex : '1 1 0' ,
21
21
minW : 32 ,
22
22
} ,
23
+ '&[data-with-description="false"]' : {
24
+ pb : 2 ,
25
+ } ,
23
26
} ;
24
27
25
28
export const NodeFieldElementViewMode = memo ( ( { el } : { el : NodeFieldElement } ) => {
@@ -35,7 +38,13 @@ export const NodeFieldElementViewMode = memo(({ el }: { el: NodeFieldElement })
35
38
) ;
36
39
37
40
return (
38
- < Flex id = { id } className = { NODE_FIELD_CLASS_NAME } sx = { sx } data-parent-layout = { containerCtx . layout } >
41
+ < Flex
42
+ id = { id }
43
+ className = { NODE_FIELD_CLASS_NAME }
44
+ sx = { sx }
45
+ data-parent-layout = { containerCtx . layout }
46
+ data-with-description = { showDescription && ! ! _description }
47
+ >
39
48
< FormControl flex = "1 1 0" orientation = "vertical" >
40
49
< NodeFieldElementLabel el = { el } />
41
50
< Flex w = "full" gap = { 4 } >
You can’t perform that action at this time.
0 commit comments