fix(core): editor height incorrect (#3799)

(cherry picked from commit c3e465d644)
This commit is contained in:
Alex Yang
2023-08-16 23:20:27 -05:00
parent b4ccd808fd
commit cf2cca86a3
3 changed files with 31 additions and 13 deletions
@@ -177,12 +177,7 @@ const LayoutPanel = memo(function LayoutPanel(
}
} else {
return (
<PanelGroup
style={{
height: 'calc(100% - 52px)',
}}
direction={node.direction}
>
<PanelGroup direction={node.direction}>
<Panel
defaultSize={node.splitPercentage}
style={{
@@ -219,6 +214,18 @@ export const PageDetailEditor = (props: PageDetailEditorProps) => {
const layout = useAtomValue(contentLayoutAtom);
if (layout === 'editor') {
return (
<Suspense>
<PanelGroup direction="horizontal">
<Panel>
<EditorWrapper {...props} />
</Panel>
</PanelGroup>
</Suspense>
);
}
return (
<>
<Suspense>