Skip to content

Commit

Permalink
fix(ui): adjust style of selected repository (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored May 9, 2024
1 parent d5e08e1 commit 4f6d830
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions ee/tabby-ui/app/files/components/file-tree-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,20 @@ const FileTreeHeader: React.FC<FileTreeHeaderProps> = ({
value={repositorySpecifier}
>
<SelectTrigger>
<SelectValue>
<div className="flex items-center gap-2">
<RepositoryKindIcon
kind={repositoryKind}
fallback={<IconFolderGit />}
/>
<span className={repositoryName ? '' : 'text-muted-foreground'}>
<SelectValue asChild>
<div className="flex items-center gap-2 overflow-hidden">
<div className="shrink-0">
<RepositoryKindIcon
kind={repositoryKind}
fallback={<IconFolderGit />}
/>
</div>
<span
className={cn(
'truncate',
!repositoryName && 'text-muted-foreground'
)}
>
{repositoryName || 'Pick a repository'}
</span>
</div>
Expand Down

0 comments on commit 4f6d830

Please sign in to comment.