Skip to content

Commit 0258f0a

Browse files
authored
fix: wrap overflowing texts of asset events (#50173)
1 parent 9acbb15 commit 0258f0a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

airflow-core/src/airflow/ui/src/components/Assets/AssetEvent.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export const AssetEvent = ({
5151
</Text>
5252
{Boolean(assetId) ? undefined : (
5353
<HStack>
54-
<FiDatabase />
54+
<Box>
55+
<FiDatabase />
56+
</Box>
5557
<Tooltip
5658
content={
5759
<div>
@@ -62,18 +64,22 @@ export const AssetEvent = ({
6264
showArrow
6365
>
6466
<Link to={`/assets/${event.asset_id}`}>
65-
<Text color="fg.info"> {event.name ?? ""} </Text>
67+
<Box color="fg.info" overflowWrap="anywhere" padding={0} wordWrap="break-word">
68+
{event.name ?? ""}
69+
</Box>
6670
</Link>
6771
</Tooltip>
6872
</HStack>
6973
)}
7074
<HStack>
71-
<Text>Source: </Text>
75+
<Box>Source: </Box>
7276
{source === "" ? (
7377
<Link
7478
to={`/dags/${event.source_dag_id}/runs/${event.source_run_id}/tasks/${event.source_task_id}${event.source_map_index > -1 ? `/mapped/${event.source_map_index}` : ""}`}
7579
>
76-
<Text color="fg.info"> {event.source_dag_id} </Text>
80+
<Box color="fg.info" overflowWrap="anywhere" padding={0} wordWrap="break-word">
81+
{event.source_dag_id}
82+
</Box>
7783
</Link>
7884
) : (
7985
source

0 commit comments

Comments
 (0)