fix: restore stable detail mode layout flow
This commit is contained in:
parent
f2806c9236
commit
85a2fe468f
@ -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]"
|
||||
)}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user