From 6c55588d7abc6a4768b5e98574e28dc486fd964f Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 14 Mar 2022 12:39:42 -0500 Subject: [PATCH] app: fix layout The explorer was getting pushed off of the screen when typing long lines in the editor. --- src/app/App.tsx | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index c48d7c37..96b4d2c5 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -149,25 +149,25 @@ const App: React.VoidFunctionComponent = ({ onEditorChanged }) => { return (
- setIsDragging(true)} - onDragEnd={(): void => setIsDragging(false)} - percentage={true} - secondaryInitialSize={Number( - localStorage.getItem('app-docs-split') || 30, - )} - onSecondaryPaneSizeChange={(value): void => - localStorage.setItem('app-docs-split', String(value)) - } +
-
-
- -
-
+ + {/* need a container for SplitterLayout since it uses position: absolute */} +
+ setIsDragging(true)} + onDragEnd={(): void => setIsDragging(false)} + percentage={true} + secondaryInitialSize={Number( + localStorage.getItem('app-docs-split') || 30, + )} + onSecondaryPaneSizeChange={(value): void => + localStorage.setItem('app-docs-split', String(value)) + } + > = ({ onEditorChanged }) => {
-
+
+ {isDragging &&
} + +
+
-
- {isDragging &&
} - -
- +
);