Skip to content
Snippets Groups Projects
Commit ef61b67a authored by chris's avatar chris
Browse files

fix: layout

parent 23037fc3
No related branches found
No related tags found
1 merge request!168Fix rerender notes
...@@ -213,8 +213,8 @@ const CommentsContainer = styled.div` ...@@ -213,8 +213,8 @@ const CommentsContainer = styled.div`
} }
`; `;
let surfaceHeight = 500; let surfaceHeight = 700;
let notesHeight = 50; let notesHeight = 150;
const onResizeEnd = arr => { const onResizeEnd = arr => {
surfaceHeight = arr[0].size; surfaceHeight = arr[0].size;
...@@ -280,7 +280,7 @@ const EditoriaLayout = ({ editor }) => { ...@@ -280,7 +280,7 @@ const EditoriaLayout = ({ editor }) => {
<PanelGroup <PanelGroup
direction="column" direction="column"
panelWidths={[ panelWidths={[
{ size: surfaceHeight, resize: 'stretch' }, { size: surfaceHeight, resize: 'dynamic' },
{ size: notesHeight, resize: 'stretch' }, { size: notesHeight, resize: 'stretch' },
]} ]}
onResizeEnd={onResizeEnd} onResizeEnd={onResizeEnd}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment