Skip to content

RunTimeline: Fix for long file names wrapping instead of truncating #1891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/webapp/app/components/run/RunTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ export function RunTimelineEvent({
<div className="relative flex flex-col items-center justify-center">
<EventMarker variant={variant} state={state} style={style} />
</div>
<div className="flex items-baseline justify-between gap-3">
<div className="flex min-w-0 items-baseline justify-between gap-3">
<TooltipProvider disableHoverableContent>
<Tooltip>
<TooltipTrigger className="cursor-default">
<span className="font-medium text-text-bright">{title}</span>
<TooltipTrigger className="min-w-0 max-w-full cursor-default text-left">
<div className="truncate font-medium text-text-bright">{title}</div>
</TooltipTrigger>
{helpText && (
<TooltipContent className="flex items-center gap-1 text-xs">
Expand All @@ -359,7 +359,9 @@ export function RunTimelineEvent({
</Tooltip>
</TooltipProvider>
{subtitle ? (
<span className="text-xs tabular-nums text-text-dimmed">{subtitle}</span>
<span className="whitespace-nowrap text-xs tabular-nums text-text-dimmed">
{subtitle}
</span>
) : null}
</div>
</div>
Expand Down