From c2da7a2f1074ea7c7859394d394ad0a99882a286 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 6 Jun 2022 18:30:14 -0400 Subject: fixed docking view layout when headerBar is expanded to not leave a gap. --- src/client/views/MainView.scss | 10 +++++++--- src/client/views/MainView.tsx | 11 +---------- 2 files changed, 8 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/client/views/MainView.scss b/src/client/views/MainView.scss index 15cd2c144..001c91b40 100644 --- a/src/client/views/MainView.scss +++ b/src/client/views/MainView.scss @@ -20,6 +20,8 @@ position: relative; width: 100%; height: 100%; + display: flex; + flex-direction: column; } // add nodes menu. Note that the + button is actually an input label, not an actual button. @@ -148,7 +150,8 @@ } } -.mainView-innerContent, .mainView-innerContent-Dark { +.mainView-innerContent, +.mainView-innerContent-Dark { display: contents; flex-direction: row; position: relative; @@ -181,8 +184,8 @@ .mainView-libraryHandle { background-color: $light-gray; } -.mainView-innerContent-Dark -{ + +.mainView-innerContent-Dark { .propertiesView { background-color: #252525; @@ -208,6 +211,7 @@ background: #353535; } } + .mainView-container-Dark { .contextMenu-cont { background: $medium-gray; diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 9c9b19122..cdf85c905 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -286,7 +286,7 @@ export class MainView extends React.Component { headerBarScreenXf = () => new Transform(-this.leftScreenOffsetOfMainDocView - this.leftMenuFlyoutWidth(), -this.headerBarDocHeight(), 1); @computed get headerBarDocView() { - return
+ return
; } - @computed get headerBar() { - return !this.userDoc ? (null) : -
- {this.headerBarDocView} -
; - } @computed get mainDashboardArea() { return !this.userDoc ? (null) : -- cgit v1.2.3-70-g09d2