Skip to content

Commit f15eedf

Browse files
maria-rcksclaude
andcommitted
feat(web): truncate the linked panel's branches in the middle
The shared pull request row landed on main, so its head and base branches get the same treatment as the rest. Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent 431877a commit f15eedf

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestListRow.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { ReactNode } from "react";
88
import { cn } from "~/lib/utils";
99
import { formatRelativeTimeLabel } from "~/timestampFormat";
1010

11+
import { MiddleTruncate } from "../ui/middle-truncate";
1112
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
1213
import {
1314
PullRequestActorAvatar,
@@ -151,8 +152,12 @@ export function PullRequestRowAuthor({
151152
/** `head → base`, in the mono the branches are typed in. */
152153
export function PullRequestRowBranches({ head, base }: { head: string; base: string }) {
153154
return (
154-
<span className="truncate font-mono">
155-
{head} → {base}
155+
<span className="flex min-w-0 items-center gap-1 font-mono">
156+
<MiddleTruncate value={head} />
157+
<span aria-hidden className="shrink-0">
158+
→
159+
</span>
160+
<MiddleTruncate value={base} />
156161
</span>
157162
);
158163
}

0 commit comments

Comments
 (0)