fix: small ui nits (#1178)
This commit is contained in:
parent
848205f5cb
commit
eae41c635d
13 changed files with 50 additions and 49 deletions
|
|
@ -62,7 +62,7 @@ export function ModelSelector({
|
|||
<ChevronDownIcon />
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start" className="min-w-[300px]">
|
||||
<DropdownMenuContent align="start" className="min-w-[280px] max-w-[90vw] sm:min-w-[300px]">
|
||||
{availableChatModels.map((chatModel) => {
|
||||
const { id } = chatModel;
|
||||
|
||||
|
|
@ -83,16 +83,16 @@ export function ModelSelector({
|
|||
>
|
||||
<button
|
||||
type="button"
|
||||
className="group/item flex w-full flex-row items-center justify-between gap-4"
|
||||
className="group/item flex w-full flex-row items-center justify-between gap-2 sm:gap-4"
|
||||
>
|
||||
<div className="flex flex-col items-start gap-1">
|
||||
<div>{chatModel.name}</div>
|
||||
<div className="text-muted-foreground text-xs">
|
||||
<div className="text-sm sm:text-base">{chatModel.name}</div>
|
||||
<div className='line-clamp-2 text-muted-foreground text-xs'>
|
||||
{chatModel.description}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="text-foreground opacity-0 group-data-[active=true]/item:opacity-100 dark:text-foreground">
|
||||
<div className='shrink-0 text-foreground opacity-0 group-data-[active=true]/item:opacity-100 dark:text-foreground'>
|
||||
<CheckCircleFillIcon />
|
||||
</div>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue