From 23ec317c5c350632511715b65882ec2e82807253 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 5 Dec 2025 07:56:12 -0800 Subject: [PATCH] Fix branch switcher width and add text truncation --- frontend/src/components/repo/BranchSwitcher.tsx | 2 +- frontend/src/components/repo/RepoCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/repo/BranchSwitcher.tsx b/frontend/src/components/repo/BranchSwitcher.tsx index a599bc47..e4d36306 100644 --- a/frontend/src/components/repo/BranchSwitcher.tsx +++ b/frontend/src/components/repo/BranchSwitcher.tsx @@ -64,7 +64,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep className={`h-6 px-1 sm:px-2 text-[10px] sm:text-xs text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:bg-accent gap-1 border border-blue-500/20 ${className || ""}`} > - {currentBranch} + {currentBranch} diff --git a/frontend/src/components/repo/RepoCard.tsx b/frontend/src/components/repo/RepoCard.tsx index a432c5be..6232d9a8 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 w-10 p-0" + className="h-10 sm:h-9 min-w-10" /> )}