Skip to content

Commit 23ec317

Browse files
author
Chris Scott
committed
Fix branch switcher width and add text truncation
1 parent e370593 commit 23ec317

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/repo/BranchSwitcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep
6464
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 || ""}`}
6565
>
6666
<GitBranch className="w-3 h-3" />
67-
<span className="hidden sm:inline">{currentBranch}</span>
67+
<span className="hidden sm:inline truncate">{currentBranch}</span>
6868
</Button>
6969
</DropdownMenuTrigger>
7070
<DropdownMenuContent sideOffset={0} align="end" className="bg-card border-border min-w-[200px]">

frontend/src/components/repo/RepoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function RepoCard({
123123
isWorktree={repo.isWorktree}
124124
repoUrl={repo.repoUrl}
125125
repoLocalPath={repo.localPath}
126-
className="h-10 sm:h-9 w-10 p-0"
126+
className="h-10 sm:h-9 min-w-10"
127127
/>
128128
)}
129129

0 commit comments

Comments
 (0)