File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
airflow-core/src/airflow/ui/src/components/Graph Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const TaskNode = ({
33
33
data : {
34
34
childCount,
35
35
depth,
36
- height,
36
+ height = 0 ,
37
37
isGroup,
38
38
isMapped,
39
39
isOpen,
@@ -42,7 +42,7 @@ export const TaskNode = ({
42
42
operator,
43
43
setupTeardownType,
44
44
taskInstance,
45
- width,
45
+ width = 0 ,
46
46
} ,
47
47
id,
48
48
} : NodeProps < NodeType < CustomNodeProps , "task" > > ) => {
@@ -71,11 +71,11 @@ export const TaskNode = ({
71
71
}
72
72
borderRadius = { 5 }
73
73
borderWidth = { isSelected ? 6 : 2 }
74
- height = { `${ height } px` }
74
+ height = { `${ height + ( isSelected ? 4 : 0 ) } px` }
75
75
justifyContent = "space-between"
76
- px = { 3 }
76
+ px = { isSelected ? 1 : 2 }
77
77
py = { isSelected ? 0 : 1 }
78
- width = { `${ width } px` }
78
+ width = { `${ width + ( isSelected ? 4 : 0 ) } px` }
79
79
>
80
80
< Box >
81
81
< TaskLink
@@ -127,7 +127,7 @@ export const TaskNode = ({
127
127
borderLeftWidth = { 1 }
128
128
borderRightWidth = { 1 }
129
129
height = { 1 }
130
- width = { `${ ( width ?? 0 ) - 10 } px` }
130
+ width = { `${ width - 10 } px` }
131
131
/>
132
132
< Box
133
133
bg = "bg.subtle"
@@ -138,7 +138,7 @@ export const TaskNode = ({
138
138
borderLeftWidth = { 1 }
139
139
borderRightWidth = { 1 }
140
140
height = { 1 }
141
- width = { `${ ( width ?? 0 ) - 20 } px` }
141
+ width = { `${ width - 20 } px` }
142
142
/>
143
143
</ >
144
144
) : undefined }
You can’t perform that action at this time.
0 commit comments