Tweak styles of header and history (#487)
This commit is contained in:
parent
cab9fddecc
commit
94f563f179
7 changed files with 65 additions and 64 deletions
|
|
@ -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]">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue