Fix branch switcher width and add text truncation

This commit is contained in:
Chris Scott committed 2025-12-05 07:56:12 -08:00
1 parent e37059360a
commit 23ec317c5c
2 files changed
+2 -2

No files matched your search

@@ -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 || ""}`}
>
<GitBranch className="w-3 h-3" />
<span className="hidden sm:inline">{currentBranch}</span>
<span className="hidden sm:inline truncate">{currentBranch}</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent sideOffset={0} align="end" className="bg-card border-border min-w-[200px]">
+1 -1
View File
@@ -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"
/>
)}