mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-09-08 17:16:40 +08:00
fix: 修复ResizablePanel默认大小总和非100%的警告
修复React可调整面板组件的布局警告"Invalid layout total size: 18%, 16%, 55%."
This commit is contained in:
@@ -68,7 +68,7 @@ const HomeLayout: FC<IProps> = ({ NoteForm, Preview, History }) => {
|
|||||||
<ResizableHandle />
|
<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>
|
<main className="flex h-full flex-col overflow-hidden bg-white p-6">{Preview}</main>
|
||||||
</ResizablePanel>
|
</ResizablePanel>
|
||||||
</ResizablePanelGroup>
|
</ResizablePanelGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user