Skip to content

Commit 3883cc2

Browse files
style: add separator and orange color to active model in quick select dropdown (#223)
1 parent 819797e commit 3883cc2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/src/components/model/ModelQuickSelect.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
DropdownMenu,
55
DropdownMenuContent,
66
DropdownMenuItem,
7+
DropdownMenuSeparator,
78
DropdownMenuTrigger,
89
} from '@/components/ui/dropdown-menu'
910
import { useModelSelection } from '@/hooks/useModelSelection'
@@ -120,12 +121,12 @@ export function ModelQuickSelect({
120121
{model && (
121122
<>
122123
<DropdownMenuItem className="flex items-center justify-between font-medium">
123-
<span className="truncate">
124+
<span className="truncate text-orange-500">
124125
{duplicateDisplayNames.has(currentModelDisplayName)
125126
? `${currentProviderName}/${currentModelDisplayName}`
126127
: currentModelDisplayName}
127128
</span>
128-
<Check className="h-4 w-4" />
129+
<Check className="h-4 w-4 text-orange-500" />
129130
</DropdownMenuItem>
130131
<DropdownMenuItem
131132
onClick={handleCurrentFavoriteToggle}
@@ -134,6 +135,7 @@ export function ModelQuickSelect({
134135
<span>{isCurrentFavorite ? 'Remove from favorites' : 'Add to favorites'}</span>
135136
<Star className={`h-4 w-4 ${isCurrentFavorite ? 'fill-yellow-400 text-yellow-400' : ''}`} />
136137
</DropdownMenuItem>
138+
<DropdownMenuSeparator />
137139
</>
138140
)}
139141

0 commit comments

Comments
 (0)