优化会话输入框在当前会话宽度不足时的显示样式
This commit is contained in:
@@ -39,11 +39,11 @@ export function SessionConfigSelector({
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="xs"
|
||||
className={cn("gap-1 shrink-0", isActive && "text-primary")}
|
||||
className={cn("gap-1 min-w-0", isActive && "text-primary")}
|
||||
title={option.description ?? option.name}
|
||||
>
|
||||
{label}
|
||||
<ChevronUp className="size-3" />
|
||||
<span className="truncate">{label}</span>
|
||||
<ChevronUp className="size-3 shrink-0" />
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent side="top" align="start" className="min-w-72">
|
||||
|
||||
Reference in New Issue
Block a user