From f5a284a1f044fddb17773552200267a0ae1b016f Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Thu, 19 Aug 2021 16:10:09 +0200 Subject: [PATCH 1/2] Fix flex values after blur changes --- res/css/structures/_LeftPanel.scss | 5 +++++ res/css/structures/_MatrixChat.scss | 5 ++--- src/components/structures/LoggedInView.tsx | 24 ++++++++++++---------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/res/css/structures/_LeftPanel.scss b/res/css/structures/_LeftPanel.scss index db634cd71f..29077811d6 100644 --- a/res/css/structures/_LeftPanel.scss +++ b/res/css/structures/_LeftPanel.scss @@ -24,6 +24,11 @@ $roomListCollapsedWidth: 68px; } } +.mx_LeftPanel_wrapper { + display: flex; + max-width: 50%; +} + .mx_LeftPanel { background-color: $roomlist-bg-color; // TODO decrease this once Spaces launches as it'll no longer need to include the 56px Community Panel diff --git a/res/css/structures/_MatrixChat.scss b/res/css/structures/_MatrixChat.scss index 90e28fb0a9..147bf2a1d1 100644 --- a/res/css/structures/_MatrixChat.scss +++ b/res/css/structures/_MatrixChat.scss @@ -33,6 +33,7 @@ limitations under the License. height: 100%; } + .mx_MatrixToolbar { order: 1; @@ -47,9 +48,7 @@ limitations under the License. display: flex; flex: 1; - flex-grow: 0; min-height: 0; - max-width: 50%; } .mx_MatrixChat_syncError { @@ -65,7 +64,7 @@ limitations under the License. } /* not the left panel, and not the resize handle, so the roomview/groupview/... */ -.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle) { +.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle):not(.mx_LeftPanel_wrapper) { background-color: $primary-bg-color; flex: 1 1 0; diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index 44c65c73ff..85b62637e6 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -644,18 +644,20 @@ class LoggedInView extends React.Component { aria-hidden={this.props.hideToSRUsers} > -
- - { SpaceStore.spacesEnabled ? : null } - - +
+
+ + { SpaceStore.spacesEnabled ? : null } + + +
+ { pageElement }
- { pageElement }
From 67ce0815103a2e1b0dcfe5efc3fbc67bd9f29d54 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Fri, 20 Aug 2021 13:04:45 +0200 Subject: [PATCH 2/2] Fix one line too much in scss --- res/css/structures/_MatrixChat.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/res/css/structures/_MatrixChat.scss b/res/css/structures/_MatrixChat.scss index 147bf2a1d1..5232c14e74 100644 --- a/res/css/structures/_MatrixChat.scss +++ b/res/css/structures/_MatrixChat.scss @@ -33,7 +33,6 @@ limitations under the License. height: 100%; } - .mx_MatrixToolbar { order: 1;