fix: restore stable detail mode layout flow
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-17 15:26:11 +08:00
parent f2806c9236
commit 85a2fe468f

View File

@ -3003,7 +3003,6 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
<ScrollArea
className={cn(
"flex-1 p-4",
isDetailGenerationMode && visibleMessages.length === 0 && "hidden",
isDetailGenerationMode && visibleMessages.length === 0 ? "pt-10" : "pt-16"
)}
>
@ -3314,7 +3313,7 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
<div
className={cn(
"mx-3 overflow-y-auto rounded-2xl border border-black/10 bg-white/95 p-3 pr-2",
visibleMessages.length === 0 ? "mt-1" : "mt-3",
"mt-3",
visibleMessages.length === 0 ? "max-h-[62vh]" : "max-h-[54vh]"
)}
>