From e1f992563c43382d4f03943f2f24d682602f75c1 Mon Sep 17 00:00:00 2001 From: "Guan-Ming (Wesley) Chiu" <105915352+guan404ming@users.noreply.github.com> Date: Fri, 3 Jul 2026 11:48:42 +0800 Subject: [PATCH] Improve mobile responsiveness for dashboard asset cards --- .../src/airflow/ui/src/components/Assets/AssetEvent.tsx | 6 +++--- .../src/airflow/ui/src/components/Assets/TriggeredRuns.tsx | 4 ++-- .../src/airflow/ui/src/components/DataTable/CardList.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/airflow-core/src/airflow/ui/src/components/Assets/AssetEvent.tsx b/airflow-core/src/airflow/ui/src/components/Assets/AssetEvent.tsx index eef73e9c98371..b7d4b62d265e2 100644 --- a/airflow-core/src/airflow/ui/src/components/Assets/AssetEvent.tsx +++ b/airflow-core/src/airflow/ui/src/components/Assets/AssetEvent.tsx @@ -71,20 +71,20 @@ export const AssetEvent = ({ showArrow > - + {event.name ?? ""} )} - + {translate("source")}: {source === "" ? ( -1 ? `/mapped/${event.source_map_index}` : ""}`} > - + {event.source_dag_id} diff --git a/airflow-core/src/airflow/ui/src/components/Assets/TriggeredRuns.tsx b/airflow-core/src/airflow/ui/src/components/Assets/TriggeredRuns.tsx index fd8866359a139..c5aab95ad570c 100644 --- a/airflow-core/src/airflow/ui/src/components/Assets/TriggeredRuns.tsx +++ b/airflow-core/src/airflow/ui/src/components/Assets/TriggeredRuns.tsx @@ -36,10 +36,10 @@ export const TriggeredRuns = ({ dagRuns }: Props) => { } return dagRuns.length === 1 ? ( - + {`${translate("triggered")} ${translate("dagRun_one")}`}: - + {dagRuns[0]?.dag_id} diff --git a/airflow-core/src/airflow/ui/src/components/DataTable/CardList.tsx b/airflow-core/src/airflow/ui/src/components/DataTable/CardList.tsx index b09704cfad054..04e6d400fbdbe 100644 --- a/airflow-core/src/airflow/ui/src/components/DataTable/CardList.tsx +++ b/airflow-core/src/airflow/ui/src/components/DataTable/CardList.tsx @@ -28,7 +28,7 @@ type DataTableProps = { }; export const CardList = ({ cardDef, isLoading, rows }: DataTableProps) => ( - + {rows.map((row) => ( {Boolean(isLoading) &&