Skip to content

Commit 907ab26

Browse files
committed
keep preferred size to 450
1 parent 15c8201 commit 907ab26

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/layouts/SplitPane.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ const SplitPane = () => {
1313
<main className='h-full'>
1414
<Allotment>
1515
<Allotment.Pane
16+
preferredSize={isNavBarCollapsed ? AppNavBarStyles.collapsedNavBarWidth.absolute : 450}
1617
minSize={isNavBarCollapsed ? AppNavBarStyles.collapsedNavBarWidth.absolute : 450}
1718
maxSize={isNavBarCollapsed ? AppNavBarStyles.collapsedNavBarWidth.absolute : 600}
1819
separator={isNavBarCollapsed ? false : true}
1920
>
2021
<div className='flex h-full text-xs'>
2122
<AppNavBar />
2223
{!isNavBarCollapsed ? (
23-
<div className='h-full w-full'>
24+
<div className='w-full h-full'>
2425
<Allotment>
2526
<Allotment.Pane>
2627
<SideBar />

0 commit comments

Comments
 (0)