feat(chat): add slash command dropdown button in message input toolbar

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-04 13:24:26 +08:00
parent 576944ac1f
commit 6359651247
12 changed files with 85 additions and 17 deletions

View File

@@ -37,9 +37,12 @@ export function SessionConfigSelector({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
variant="outline"
size="xs"
className={cn("gap-1 min-w-0", isActive && "text-primary")}
className={cn(
"gap-1 min-w-0 bg-transparent",
isActive && "text-primary"
)}
title={option.description ?? option.name}
>
<span className="truncate">{label}</span>