Skip to content

Commit 861c8e9

Browse files
authored
Truncates run name on homepage (#1507)
## Description Added truncation to long pipeline run names in the RunRow component to prevent UI overflow. The name is now limited to a maximum width of 400px and displays a tooltip with the full name when hovered. ## Type of Change - [x] Bug fix - [x] Improvement ## Checklist - [x] I have tested this does not break current pipelines / runs functionality - [x] I have tested the changes on staging ## Screenshots (if applicable) Before ![Screenshot 2025-12-09 at 9.17.01 AM.png](https://app.graphite.com/user-attachments/assets/dd08a837-5290-45dd-8692-7644b2bbfa05.png) After: ![Screenshot 2025-12-09 at 9.16.23 AM.png](https://app.graphite.com/user-attachments/assets/649dad66-1d28-4d8b-8d62-f8901bbdd3d7.png) ## Test Instructions 1. Create a pipeline run with a very long name 2. Verify that the name is truncated in the UI with an ellipsis 3. Hover over the truncated name to confirm the full name appears in a tooltip
1 parent f40863c commit 861c8e9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/Home/RunSection/RunRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const RunRow = ({ run }: { run: PipelineRunResponse }) => {
7878
>
7979
<TableCell className="text-sm flex items-center gap-2">
8080
<StatusIcon status={getRunStatus(statusCounts)} />
81-
<Paragraph>{name}</Paragraph>
81+
<Paragraph className="truncate max-w-[400px]" title={name}>{name}</Paragraph>
8282
<span>{`#${runId}`}</span>
8383
</TableCell>
8484
<TableCell>

src/components/ui/typography.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ interface TextProps
6666
* @default ''
6767
*/
6868
className?: string;
69+
70+
/** Native browser tooltip text */
71+
title?: string;
6972
}
7073

7174
/**

0 commit comments

Comments
 (0)