From 858920feb9079d043a1a8518a2742302afd84779 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Wed, 15 Sep 2021 19:21:39 +0100 Subject: [PATCH] chore(ApplicationLayout): remove SIDEBAR_ADD_FILE_TO_BUCKET components - fix overflow issue in the header - remove fileLoading instances --- components/core/ApplicationLayout.js | 84 ++++++++-------------------- 1 file changed, 24 insertions(+), 60 deletions(-) diff --git a/components/core/ApplicationLayout.js b/components/core/ApplicationLayout.js index 01d57d2b..fd979924 100644 --- a/components/core/ApplicationLayout.js +++ b/components/core/ApplicationLayout.js @@ -84,11 +84,10 @@ const STYLES_MODAL = css` top: ${Constants.sizes.header}px; right: 0; bottom: 0; - width: 100vw; - height: calc(100vh - ${Constants.sizes.header}px); position: fixed; left: 0; padding: 24px 24px 32px; + height: calc(100vh - ${Constants.sizes.header}px); background-color: ${Constants.semantic.bgBlurWhiteOP}; @@ -188,60 +187,31 @@ export default class ApplicationLayout extends React.Component { render() { let sidebarElements = null; if (this.props.sidebar) { - if (this.props.sidebarName === "SIDEBAR_ADD_FILE_TO_BUCKET") { - sidebarElements = ( -
- +
+
{ + this._sidebar = c; + }} > -
{ - this._sidebar = c; - }} - > -
-
- -
+
+
+
- {this.props.sidebar} -
- -
- ); - } else { - sidebarElements = ( - -
-
{ - this._sidebar = c; - }} - > -
-
- -
-
-
{this.props.sidebar}
+
{this.props.sidebar}
-
- ); - } +
+ + ); } return ( @@ -249,13 +219,8 @@ export default class ApplicationLayout extends React.Component { {this.props.header && ( <> -
{this.props.header}
-
- {this.props.header} -
+
+
{this.props.header}
)}