Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed Apr 16, 2024
1 parent 8567556 commit e6094c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions airflow/www/static/js/dag/details/graph/DagNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const DagNode = ({

if (!task) return null;

const isGroup = !!task.children?.length;
const groupBg = isOpen ? `${colors.blue[500]}15` : "blue.50";
const { isMapped } = task;
const mappedStates = instance?.mappedStates;
Expand Down Expand Up @@ -87,7 +86,7 @@ const DagNode = ({

let borderWidth = 2;
if (isZoomedOut) {
if (isSelected) borderWidth = 8;
if (isSelected) borderWidth = 10;
else borderWidth = 6;
} else if (isSelected) borderWidth = 4;

Expand Down Expand Up @@ -130,8 +129,8 @@ const DagNode = ({
}}
px={isZoomedOut ? 1 : 2}
mt={isZoomedOut ? -2 : 0}
alignItems={isZoomedOut && !isGroup ? "center" : undefined}
justifyContent={isZoomedOut && !isGroup ? "center" : undefined}
alignItems={isZoomedOut && !isOpen ? "center" : undefined}
justifyContent={isZoomedOut && !isOpen ? "center" : undefined}
flexDirection="column"
overflow="wrap"
>
Expand Down
5 changes: 0 additions & 5 deletions airflow/www/static/js/dag/grid/renderTaskRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ const Row = (props: RowProps) => {
pl={level * 4 + 4}
setupTeardownType={task.setupTeardownType}
pr={4}
// fontWeight={
// isGroup || (task.isMapped && !isParentMapped)
// ? "bold"
// : "normal"
// }
noOfLines={1}
/>
</Td>
Expand Down

0 comments on commit e6094c5

Please sign in to comment.