优化会话输入框在当前会话宽度不足时的显示样式

This commit is contained in:
xintaofei
2026-03-11 14:57:45 +08:00
parent 84e2d2bb56
commit c9125edb89
3 changed files with 61 additions and 29 deletions

View File

@@ -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">