Tweak styles of header and history (#487)

This commit is contained in:
Jeremy 2024-11-05 14:16:27 +03:00 committed by GitHub
parent cab9fddecc
commit 94f563f179
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 65 additions and 64 deletions

View file

@ -14,6 +14,8 @@ import {
} from '@/components/ui/dropdown-menu';
import { cn } from '@/lib/utils';
import { ChevronDownIcon } from './icons';
export function ModelSelector({
selectedModelId,
className,
@ -34,13 +36,13 @@ export function ModelSelector({
<DropdownMenuTrigger
asChild
className={cn(
'px-2 w-fit data-[state=open]:bg-accent data-[state=open]:text-accent-foreground md:h-8 [&>svg]:!size-5 md:[&>svg]:!size-4',
'w-fit data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
className
)}
>
<Button variant="ghost">
<Button variant="outline" className="md:px-2 md:h-[34px]">
{selectModel?.label}
<ChevronDown className="text-muted-foreground" />
<ChevronDownIcon />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="min-w-[300px]">