From d7bb4bb55f7cbe8fc0b820fede57a423bffa5058 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Tue, 18 Jun 2019 14:48:52 +0200 Subject: [PATCH] Fix layout default sizes --- app/src/components/Layout/ContentView.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/components/Layout/ContentView.tsx b/app/src/components/Layout/ContentView.tsx index f65f6c2..5e4f5c2 100644 --- a/app/src/components/Layout/ContentView.tsx +++ b/app/src/components/Layout/ContentView.tsx @@ -18,7 +18,7 @@ interface Props { function ContentView(props: Props) { const [height, setHeight] = React.useState('100%') - const [sidebarWidth, setSidebarWidth] = React.useState(500) + const [sidebarWidth, setSidebarWidth] = React.useState('40%') const [detectedHeight, setDetectedHeight] = React.useState(0) const [detectedSidebarWidth, setDetectedSidebarWidth] = React.useState(0) const detectSize = React.useCallback((width, newHeight) => { @@ -65,7 +65,6 @@ function ContentView(props: Props) { size={sidebarWidth} onChange={setSidebarWidth} onDragFinished={closeSidebarCompletelyIfItSitsOnTheEdge} - defaultSize={500} allowResize={true} style={{ height: '100%' }} pane1Style={{ overflowX: 'hidden' }} @@ -77,7 +76,6 @@ function ContentView(props: Props) { split="horizontal" minSize={0} size={height} - defaultSize={'100%'} allowResize={true} style={{ height: 'calc(100vh - 64px)' }} pane1Style={{ maxHeight: '100%' }}