From c529535e252d82774533704cde5699379c4a9b5a Mon Sep 17 00:00:00 2001 From: Brent Bovenzi Date: Tue, 6 Feb 2024 13:56:30 -0500 Subject: [PATCH] Fix collapsed grid width, line up selected bar with gantt --- airflow/www/static/js/dag/Main.tsx | 2 +- airflow/www/static/js/dag/details/Header.tsx | 2 +- airflow/www/static/js/dag/details/index.tsx | 2 +- airflow/www/static/js/dag/grid/dagRuns/index.tsx | 12 +++++++++++- airflow/www/static/js/dag/grid/index.tsx | 3 +-- airflow/www/static/js/dag/grid/renderTaskRows.tsx | 2 ++ 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/airflow/www/static/js/dag/Main.tsx b/airflow/www/static/js/dag/Main.tsx index 86955792ec5316..28dffedf28c7c1 100644 --- a/airflow/www/static/js/dag/Main.tsx +++ b/airflow/www/static/js/dag/Main.tsx @@ -38,7 +38,7 @@ import keyboardShortcutIdentifier from "./keyboardShortcutIdentifier"; const detailsPanelKey = "hideDetailsPanel"; const minPanelWidth = 300; -const collapsedWidth = "28px"; +const collapsedWidth = "32px"; const gridWidthKey = "grid-width"; const saveWidth = debounce( diff --git a/airflow/www/static/js/dag/details/Header.tsx b/airflow/www/static/js/dag/details/Header.tsx index d17f04618ae5c3..5f0ded364c8eea 100644 --- a/airflow/www/static/js/dag/details/Header.tsx +++ b/airflow/www/static/js/dag/details/Header.tsx @@ -87,7 +87,7 @@ const Header = () => { const isMappedTaskDetails = runId && taskId && mapIndex !== undefined; return ( - /}> + /}> ti.runId === runId); return ( - + )} - + {runs.map((run: RunWithDuration, index) => ( - +
{ bg={isSelected ? "blue.100" : "inherit"} borderBottomWidth={1} borderBottomColor={isGroup && isOpen ? "gray.400" : "gray.200"} + borderRightWidth="16px" + borderRightColor={isSelected ? "blue.100" : "transparent"} role="group" _hover={!isSelected ? { bg: hoverBlue } : undefined} transition="background-color 0.2s"