diff --git a/res/css/_components.scss b/res/css/_components.scss
index 18c3597db0..6aed78a627 100644
--- a/res/css/_components.scss
+++ b/res/css/_components.scss
@@ -10,6 +10,7 @@
@import "./structures/_HeaderButtons.scss";
@import "./structures/_HomePage.scss";
@import "./structures/_LeftPanel.scss";
+@import "./structures/_MainSplit.scss";
@import "./structures/_MatrixChat.scss";
@import "./structures/_MyGroups.scss";
@import "./structures/_NotificationPanel.scss";
diff --git a/res/css/structures/_GroupView.scss b/res/css/structures/_GroupView.scss
index 1c477a959a..bfbc92ca05 100644
--- a/res/css/structures/_GroupView.scss
+++ b/res/css/structures/_GroupView.scss
@@ -170,7 +170,6 @@ limitations under the License.
.mx_GroupView > .mx_MainSplit {
flex: 1;
- display: flex;
}
.mx_GroupView_body {
diff --git a/res/css/structures/_MainSplit.scss b/res/css/structures/_MainSplit.scss
new file mode 100644
index 0000000000..28c89fe7ca
--- /dev/null
+++ b/res/css/structures/_MainSplit.scss
@@ -0,0 +1,21 @@
+/*
+Copyright 2019 New Vector Ltd
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+.mx_MainSplit {
+ display: flex;
+ flex-direction: row;
+ min-width: 0;
+}
diff --git a/res/css/structures/_RoomView.scss b/res/css/structures/_RoomView.scss
index 77b868e391..8e3eb75608 100644
--- a/res/css/structures/_RoomView.scss
+++ b/res/css/structures/_RoomView.scss
@@ -77,7 +77,6 @@ limitations under the License.
.mx_RoomView .mx_MainSplit {
flex: 1 1 0;
- display: flex;
}
.mx_RoomView_body {
diff --git a/res/css/views/rooms/_MemberInfo.scss b/res/css/views/rooms/_MemberInfo.scss
index 60faf3ef13..8f89b83003 100644
--- a/res/css/views/rooms/_MemberInfo.scss
+++ b/res/css/views/rooms/_MemberInfo.scss
@@ -32,11 +32,12 @@ limitations under the License.
.mx_MemberInfo_cancel {
height: 16px;
- padding: 10px 15px;
+ width: 16px;
+ padding: 10px 0 10px 10px;
cursor: pointer;
mask-image: url('$(res)/img/minimise.svg');
mask-repeat: no-repeat;
- mask-position: center;
+ mask-position: 16px center;
background-color: $rightpanel-button-color;
}
@@ -47,7 +48,7 @@ limitations under the License.
.mx_MemberInfo h2 {
font-size: 18px;
font-weight: 600;
- margin: 16px 0;
+ margin: 16px 0 16px 15px;
}
.mx_MemberInfo_container {
diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js
index 2e1b91fe0e..c6c1be67ec 100644
--- a/src/components/structures/LoggedInView.js
+++ b/src/components/structures/LoggedInView.js
@@ -421,6 +421,7 @@ const LoggedInView = React.createClass({
render: function() {
const LeftPanel = sdk.getComponent('structures.LeftPanel');
const RoomView = sdk.getComponent('structures.RoomView');
+ const UserView = sdk.getComponent('structures.UserView');
const EmbeddedPage = sdk.getComponent('structures.EmbeddedPage');
const GroupView = sdk.getComponent('structures.GroupView');
const MyGroups = sdk.getComponent('structures.MyGroups');
@@ -469,9 +470,7 @@ const LoggedInView = React.createClass({
break;
case PageTypes.UserView:
- pageElement = null; // deliberately null for now
- // TODO: fix/remove UserView
- // right_panel =