pierrejeambrun commented on code in PR #57108:
URL: https://github.com/apache/airflow/pull/57108#discussion_r2466016373


##########
airflow-core/src/airflow/ui/src/pages/DagsList/AssetSchedule.tsx:
##########
@@ -61,9 +61,23 @@ export const AssetSchedule = ({ assetExpression, dagId, 
latestRunAfter, timetabl
 
   if (nextRunEvents.length === 1 && asset !== undefined) {
     return (
-      <HStack>
-        <FiDatabase style={{ display: "inline" }} />
-        <Link asChild color="fg.info" display="block" fontSize="sm" 
maxWidth="200px" truncate>
+      <HStack maxWidth="100%" overflow="hidden">
+        <FiDatabase style={{ display: "inline", flexShrink: 0 }} />
+        <Link
+          asChild
+          color="fg.info"
+          css={{
+            overflow: "hidden",
+            textOverflow: "ellipsis",
+            WebkitBoxOrient: "vertical",
+            WebkitLineClamp: 2,
+            wordBreak: "break-word",
+          }}
+          display="-webkit-box"
+          flex="1"
+          fontSize="sm"
+          minWidth="0"
+        >

Review Comment:
   There is already a `TruncatedText` component to achieve exactly that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to