Skip to content

Commit 1163550

Browse files
committed
fix(web): keep linked PR branches readable beside repository names
1 parent 587a83c commit 1163550

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

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

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,23 @@ function LinkRow({
160160
labelClassName="max-w-28"
161161
/>
162162
) : null}
163-
<Tooltip>
164-
<TooltipTrigger
165-
render={<span className="max-w-[45%] shrink-0 truncate font-mono" />}
166-
>
167-
{link.repository}
168-
</TooltipTrigger>
169-
<TooltipPopup>{link.repository}</TooltipPopup>
170-
</Tooltip>
171163
{snapshot !== null ? (
172-
<PullRequestRowBranches head={snapshot.headBranch} base={snapshot.baseBranch} />
173-
) : null}
164+
<>
165+
<Tooltip>
166+
<TooltipTrigger
167+
render={<span className="min-w-0 max-w-32 truncate font-mono" />}
168+
>
169+
{link.repository}
170+
</TooltipTrigger>
171+
<TooltipPopup>{link.repository}</TooltipPopup>
172+
</Tooltip>
173+
<PullRequestRowBranches head={snapshot.headBranch} base={snapshot.baseBranch} />
174+
</>
175+
) : (
176+
<span className="truncate font-mono">
177+
{link.host}/{link.repository}
178+
</span>
179+
)}
174180
</>
175181
}
176182
updatedAt={snapshot?.updatedAt}

0 commit comments

Comments
 (0)