fix: 修复ResizablePanel默认大小总和非100%的警告

修复React可调整面板组件的布局警告"Invalid layout total size: 18%, 16%, 55%."
This commit is contained in:
Karasukaigan
2025-07-02 01:09:46 +08:00
parent d8768d5d5b
commit fabf4b7cd5

View File

@@ -68,7 +68,7 @@ const HomeLayout: FC<IProps> = ({ NoteForm, Preview, History }) => {
<ResizableHandle />
{/* 右边预览 */}
<ResizablePanel defaultSize={55} minSize={30}>
<ResizablePanel defaultSize={66} minSize={30}>
<main className="flex h-full flex-col overflow-hidden bg-white p-6">{Preview}</main>
</ResizablePanel>
</ResizablePanelGroup>