From e4a27e53e501458cf73e368baab0e4aca27511f9 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 12 Dec 2025 19:08:34 -0500 Subject: [PATCH] Improve branch switcher layout consistency across components --- frontend/src/components/repo/BranchSwitcher.tsx | 1 + frontend/src/components/repo/RepoCard.tsx | 2 +- frontend/src/components/session/SessionDetailHeader.tsx | 1 + frontend/src/pages/RepoDetail.tsx | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/repo/BranchSwitcher.tsx b/frontend/src/components/repo/BranchSwitcher.tsx index 6651e0c5..5c8fcaa6 100644 --- a/frontend/src/components/repo/BranchSwitcher.tsx +++ b/frontend/src/components/repo/BranchSwitcher.tsx @@ -47,6 +47,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["repo", repoId] }); queryClient.invalidateQueries({ queryKey: ["branches", repoId] }); + queryClient.invalidateQueries({ queryKey: ["repos"] }); }, }); diff --git a/frontend/src/components/repo/RepoCard.tsx b/frontend/src/components/repo/RepoCard.tsx index 6232d9a8..54ea186a 100644 --- a/frontend/src/components/repo/RepoCard.tsx +++ b/frontend/src/components/repo/RepoCard.tsx @@ -123,7 +123,7 @@ export function RepoCard({ isWorktree={repo.isWorktree} repoUrl={repo.repoUrl} repoLocalPath={repo.localPath} - className="h-10 sm:h-9 min-w-10" + className="h-10 sm:h-9 w-[140px] max-w-[140px]" /> )} diff --git a/frontend/src/components/session/SessionDetailHeader.tsx b/frontend/src/components/session/SessionDetailHeader.tsx index dd56d2f9..2aad2d7b 100644 --- a/frontend/src/components/session/SessionDetailHeader.tsx +++ b/frontend/src/components/session/SessionDetailHeader.tsx @@ -158,6 +158,7 @@ export function SessionDetailHeader({ isWorktree={repo.isWorktree} repoUrl={repo.repoUrl} repoLocalPath={repo.localPath} + className="max-w-[80px] sm:w-[140px] sm:max-w-[140px]" />
) : branchToDisplay ? (