fix: place canvas toolbar in layout flow to prevent message overlap
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-18 21:37:01 +08:00
parent 78c9ed6173
commit 2721b6ec19

View File

@ -3042,7 +3042,7 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
return (
<div className="flex flex-col h-full bg-background/50 backdrop-blur-sm relative">
{/* Header - Minimal with Icons */}
<div className="absolute top-0 right-0 z-20 p-4 flex flex-col items-end gap-2">
<div className="z-20 ml-auto p-4 flex flex-col items-end gap-2">
<div className="flex items-center gap-1">
<Button
variant="ghost"
@ -3143,7 +3143,7 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
"flex-1 p-4",
isDetailGenerationMode && visibleMessages.length === 0
? "pt-10"
: "pt-16"
: "pt-4"
)}
>
<div className="space-y-6 pb-24">