From daf5754cc1482216bbf75f2be2fe86f85d4d3aa0 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 5 Dec 2025 07:35:35 -0800 Subject: [PATCH] Replace branch button with dropdown in RepoCard --- .../src/components/repo/BranchSwitcher.tsx | 5 ++- frontend/src/components/repo/RepoCard.tsx | 43 +++++++------------ 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/frontend/src/components/repo/BranchSwitcher.tsx b/frontend/src/components/repo/BranchSwitcher.tsx index 3365042a..a599bc47 100644 --- a/frontend/src/components/repo/BranchSwitcher.tsx +++ b/frontend/src/components/repo/BranchSwitcher.tsx @@ -20,9 +20,10 @@ interface BranchSwitcherProps { isWorktree?: boolean; repoUrl?: string | null; repoLocalPath?: string; + className?: string; } -export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, repoLocalPath }: BranchSwitcherProps) { +export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, repoLocalPath, className }: BranchSwitcherProps) { const [addBranchOpen, setAddBranchOpen] = useState(false); const [gitChangesOpen, setGitChangesOpen] = useState(false); const queryClient = useQueryClient(); @@ -60,7 +61,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep - - + /> + )}