Skip to content

Commit

Permalink
chore(ui): opitimize the empty view of repository select in chat side…
Browse files Browse the repository at this point in the history
… panel (#3730)
  • Loading branch information
liangfung authored Jan 20, 2025
1 parent 221bed8 commit 3bd8a1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ee/tabby-ui/components/chat/repo-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ export function RepoSelect({
className={cn(
'h-7 items-center gap-1 overflow-hidden break-all rounded-md px-0 text-sm font-semibold hover:bg-muted/50',
{
'border-dashed text-muted-foreground italic line-through':
!selectedRepo
'border-dashed text-muted-foreground italic': !selectedRepo
}
)}
>
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/textarea-search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export default function TextAreaSearch({
<TooltipTrigger asChild>
<Button
variant="ghost"
className="gap-2 px-1.5 py-1 text-foreground/70"
className="gap-2 px-1.5 py-1 text-foreground/90"
onClick={e => onInsertMention('@')}
disabled={!hasDocumentSource}
>
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/textarea-search/model-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function ModelSelect({
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
className="gap-2 px-1.5 py-1 text-foreground/70"
className="gap-2 px-1.5 py-1 text-foreground/90"
>
<IconBox />
{value}
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/textarea-search/repo-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function RepoSelect({
<PopoverTrigger className="outline-none" asChild>
<Button
variant="ghost"
className="gap-2 px-1.5 py-1 font-normal"
className="gap-2 px-1.5 py-1 font-normal text-foreground/90"
title={selectedRepoName || 'select codebase'}
>
{selectedRepo ? (
Expand Down

0 comments on commit 3bd8a1b

Please sign in to comment.