From 6622dfac119a6780061011e090095463cc53ff1d Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 29 Mar 2026 09:42:06 -0700 Subject: [PATCH] style: use PR icon+link style matching WorktreeCard (#191) Replace the colored badge with the same PR display style used in WorktreeCard: state-colored PullRequestIcon, clickable PR number link, and truncated title text. --- .../right-sidebar/SourceControl.tsx | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index bbe88a170..7b9c6a4e9 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -28,7 +28,7 @@ import { DialogTitle } from '@/components/ui/dialog' import { BaseRefPicker } from '@/components/settings/BaseRefPicker' -import { prStateColor } from './checks-helpers' +import { PullRequestIcon } from './checks-helpers' import type { GitBranchChangeEntry, GitBranchCompareSummary, @@ -347,17 +347,27 @@ export default function SourceControl(): React.JSX.Element { ))} {prInfo && ( - +
+ + e.stopPropagation()} + > + PR #{prInfo.number} + + {prInfo.title} +
)}