fix(layout): wrap children in a flex-1 div for consistent layout behavior

This commit is contained in:
cfngc4594 2025-02-26 11:14:30 +08:00
parent 0606ec8971
commit 88c994454e

View File

@ -11,7 +11,9 @@ export default function WorkspaceEditorLayout({
return ( return (
<div className="h-full flex flex-col"> <div className="h-full flex flex-col">
<WorkspaceEditorHeader /> <WorkspaceEditorHeader />
{children} <div className="flex-1">
{children}
</div>
<WorkspaceEditorFooter /> <WorkspaceEditorFooter />
</div> </div>
); );