收紧画布模式弹窗尺寸与字重
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-15 00:22:23 +08:00
parent fd707e9a25
commit a8b058d961

View File

@ -2604,40 +2604,40 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
align="start"
side="top"
sideOffset={10}
className="w-[220px] rounded-2xl border border-[#d6d9df] bg-[#f4f5f7] p-2 shadow-[0_10px_24px_rgba(15,23,42,0.14)]"
className="w-[156px] rounded-xl border border-[#d6d9df] bg-[#f4f5f7] p-1.5 shadow-[0_8px_18px_rgba(15,23,42,0.14)]"
>
<DropdownMenuItem
onClick={() => handleSelectGenerationMode("agent")}
className={cn(
"h-11 cursor-pointer rounded-xl px-3 text-[16px] font-medium text-[#2e3238]",
"h-8 cursor-pointer rounded-lg px-2 text-[13px] font-medium text-[#2e3238]",
activeComposerMode === "agent" ? "bg-white/80" : "hover:bg-white/70"
)}
>
<Sparkles className="h-5 w-5" />
<Sparkles className="h-4 w-4" />
<span className="flex-1">Agent</span>
{activeComposerMode === "agent" ? <Check className="h-5 w-5 text-[#3b82f6]" /> : null}
{activeComposerMode === "agent" ? <Check className="h-4 w-4 text-[#3b82f6]" /> : null}
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => handleSelectGenerationMode("image")}
className={cn(
"h-11 cursor-pointer rounded-xl px-3 text-[16px] font-medium text-[#2e3238]",
"h-8 cursor-pointer rounded-lg px-2 text-[13px] font-medium text-[#2e3238]",
activeComposerMode === "image" ? "bg-white/80" : "hover:bg-white/70"
)}
>
<ImagePlus className="h-5 w-5" />
<ImagePlus className="h-4 w-4" />
<span className="flex-1">图像生成器</span>
{activeComposerMode === "image" ? <Check className="h-5 w-5 text-[#3b82f6]" /> : null}
{activeComposerMode === "image" ? <Check className="h-4 w-4 text-[#3b82f6]" /> : null}
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => handleSelectGenerationMode("video")}
className={cn(
"h-11 cursor-pointer rounded-xl px-3 text-[16px] font-medium text-[#2e3238]",
"h-8 cursor-pointer rounded-lg px-2 text-[13px] font-medium text-[#2e3238]",
activeComposerMode === "video" ? "bg-white/80" : "hover:bg-white/70"
)}
>
<Video className="h-5 w-5" />
<Video className="h-4 w-4" />
<span className="flex-1">视频生成器</span>
{activeComposerMode === "video" ? <Check className="h-5 w-5 text-[#3b82f6]" /> : null}
{activeComposerMode === "video" ? <Check className="h-4 w-4 text-[#3b82f6]" /> : null}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>