Skip to content

Commit 01d13b8

Browse files
authored
Update graph node styling (apache#50047)
1 parent 65be581 commit 01d13b8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

airflow-core/src/airflow/ui/src/components/Graph/AliasNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const AliasNode = ({
3131
bg="bg"
3232
borderColor={isSelected ? "border.inverted" : "border"}
3333
borderRadius={5}
34-
borderWidth={isSelected ? 6 : 2}
34+
borderWidth={isSelected ? 4 : 2}
3535
cursor="default"
3636
flexDirection="column"
3737
height={`${height}px`}

airflow-core/src/airflow/ui/src/components/Graph/AssetNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const AssetNode = ({
5757
bg="bg"
5858
borderColor={isSelected ? "border.inverted" : "border"}
5959
borderRadius={5}
60-
borderWidth={isSelected ? 6 : 2}
60+
borderWidth={isSelected ? 4 : 2}
6161
cursor="default"
6262
flexDirection="column"
6363
height={`${height}px`}

airflow-core/src/airflow/ui/src/components/Graph/DagNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const DagNode = ({
3737
<Flex
3838
bg={isOpen ? "bg.muted" : "bg"}
3939
borderRadius={5}
40-
borderWidth={isSelected ? 6 : 2}
40+
borderWidth={isSelected ? 4 : 2}
4141
cursor="default"
4242
flexDirection="column"
4343
height={`${height}px`}

airflow-core/src/airflow/ui/src/components/Graph/Edge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const CustomEdge = ({ data }: Props) => {
6767
key={section.id}
6868
stroke={colorMode === "dark" ? darkStroke : lightStroke}
6969
strokeDasharray={rest.isSetupTeardown ? "10,5" : undefined}
70-
strokeWidth={rest.isSelected ? 4 : 1}
70+
strokeWidth={rest.isSelected ? 2 : 1}
7171
x={(point: ElkPoint) => point.x}
7272
y={(point: ElkPoint) => point.y}
7373
/>

airflow-core/src/airflow/ui/src/components/Graph/TaskNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const TaskNode = ({
7070
taskInstance?.state ? `${taskInstance.state}.solid` : isSelected ? "border.inverted" : "border"
7171
}
7272
borderRadius={5}
73-
borderWidth={isSelected ? 6 : 2}
73+
borderWidth={isSelected ? 4 : 2}
7474
height={`${height + (isSelected ? 4 : 0)}px`}
7575
justifyContent="space-between"
7676
px={isSelected ? 1 : 2}

0 commit comments

Comments
 (0)