Skip to content

Commit 9679051

Browse files
author
Luke Barnard
committed
Introduce mx_RoomView_body for fadable things in the RoomView
Part of simplifying use of mx_fadable
1 parent 0561c5b commit 9679051

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_RoomView.scss‎

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,32 @@ limitations under the License.
8080
max-width: 1920px ! important;
8181
}
8282

83-
.mx_RoomView_topUnreadMessagesBar {
83+
84+
.mx_RoomView_body {
8485
order: 3;
86+
flex: 1 1 0;
87+
flex-direction: column;
88+
display: flex;
8589
}
8690

87-
.mx_RoomView_messagePanel {
88-
order: 4;
91+
.mx_RoomView_body .mx_RoomView_topUnreadMessagesBar {
92+
order: 1;
93+
}
8994

90-
flex: 1 1 0;
95+
.mx_RoomView_body .mx_RoomView_messagePanel {
96+
order: 2;
97+
}
9198

92-
width: 100%;
99+
.mx_RoomView_body .mx_RoomView_statusArea {
100+
order: 3;
101+
}
102+
103+
.mx_RoomView_body .mx_MessageComposer {
104+
order: 4;
105+
}
93106

107+
.mx_RoomView_messagePanel {
108+
width: 100%;
94109
overflow-y: auto;
95110
}
96111

@@ -131,18 +146,6 @@ limitations under the License.
131146
clear: both;
132147
}
133148

134-
.mx_RoomView_invitePrompt {
135-
order: 2;
136-
137-
min-width: 0px;
138-
max-width: 960px;
139-
width: 100%;
140-
margin: auto;
141-
142-
margin-top: 12px;
143-
margin-bottom: 12px;
144-
}
145-
146149
li.mx_RoomView_myReadMarker_container {
147150
height: 0px;
148151
margin: 0px;
@@ -160,8 +163,6 @@ hr.mx_RoomView_myReadMarker {
160163
}
161164

162165
.mx_RoomView_statusArea {
163-
order: 5;
164-
165166
width: 100%;
166167
flex: 0 0 auto;
167168

@@ -236,8 +237,6 @@ hr.mx_RoomView_myReadMarker {
236237
}
237238

238239
.mx_RoomView .mx_MessageComposer {
239-
order: 6;
240-
241240
width: 100%;
242241
flex: 0 0 auto;
243242
margin-right: 2px;

0 commit comments

Comments
 (0)