diff --git a/airflow/www/static/js/grid/AutoRefresh.jsx b/airflow/www/static/js/grid/AutoRefresh.jsx index d92cf07838045e..b7c1c292060959 100644 --- a/airflow/www/static/js/grid/AutoRefresh.jsx +++ b/airflow/www/static/js/grid/AutoRefresh.jsx @@ -33,7 +33,13 @@ const AutoRefresh = () => { return ( - + Auto-refresh { +const Grid = ({ isPanelOpen = false, onPanelToggle, hoveredTaskState }) => { const scrollRef = useRef(); const tableRef = useRef(); @@ -82,16 +84,35 @@ const Grid = ({ isPanelOpen = false, hoveredTaskState }) => { overflow="auto" ref={scrollRef} flexGrow={1} - minWidth={isPanelOpen && '300px'} + minWidth={isPanelOpen && '350px'} > - - - + + + + + + } + transform={!isPanelOpen && 'rotateZ(180deg)'} + transitionProperty="none" /> - diff --git a/airflow/www/static/js/grid/LegendRow.jsx b/airflow/www/static/js/grid/LegendRow.jsx index 3193435701a966..eff503403c768b 100644 --- a/airflow/www/static/js/grid/LegendRow.jsx +++ b/airflow/www/static/js/grid/LegendRow.jsx @@ -44,7 +44,7 @@ const StatusBadge = ({ const LegendRow = ({ setHoveredTaskState }) => ( - + { Object.entries(stateColors).map(([state, stateColor]) => ( { const { clearSelection } = useSelection(); const [hoveredTaskState, setHoveredTaskState] = useState(); - const toggleDetailsPanel = () => { + const onPanelToggle = () => { if (!isOpen) { localStorage.setItem(detailsPanelKey, false); } else { @@ -57,20 +56,13 @@ const Main = () => { - - + + - {isOpen && (
)}