Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d2fa0af

Browse files
authored
Manage rules for mx_RoomView on _RoomView.pcss - _ScrollPanel.pcss (#10770)
* Move style rules of `mx_RoomView_MessageList` from _ScrollPanel.pcss on _RoomView.pcss * Nesting: `mx_RoomView--local .mx_ScrollPanel`
1 parent 556a36f commit d2fa0af

File tree

3 files changed

+13
-31
lines changed

3 files changed

+13
-31
lines changed

res/css/_components.pcss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
@import "./structures/_RoomSearch.pcss";
7676
@import "./structures/_RoomStatusBar.pcss";
7777
@import "./structures/_RoomView.pcss";
78-
@import "./structures/_ScrollPanel.pcss";
7978
@import "./structures/_SearchBox.pcss";
8079
@import "./structures/_SpaceHierarchy.pcss";
8180
@import "./structures/_SpacePanel.pcss";

res/css/structures/_RoomView.pcss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,20 @@ limitations under the License.
181181
li {
182182
clear: both;
183183
}
184-
}
185184

186-
.mx_RoomView--local .mx_ScrollPanel .mx_RoomView_MessageList {
187-
justify-content: center;
185+
.mx_ScrollPanel & {
186+
position: relative;
187+
display: flex;
188+
flex-direction: column;
189+
justify-content: flex-end;
190+
191+
content-visibility: auto;
192+
contain-intrinsic-size: 50px;
193+
}
194+
195+
.mx_RoomView--local .mx_ScrollPanel & {
196+
justify-content: center;
197+
}
188198
}
189199

190200
li.mx_RoomView_myReadMarker_container {

res/css/structures/_ScrollPanel.pcss

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)