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

Commit

Permalink
Manage rules for mx_RoomView on _RoomView.pcss - `_ScrollPanel.pc…
Browse files Browse the repository at this point in the history
…ss` (#10770)

* Move style rules of `mx_RoomView_MessageList` from _ScrollPanel.pcss on _RoomView.pcss

* Nesting: `mx_RoomView--local .mx_ScrollPanel`
  • Loading branch information
luixxiul authored May 9, 2023
1 parent 556a36f commit d2fa0af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 31 deletions.
1 change: 0 additions & 1 deletion res/css/_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
@import "./structures/_RoomSearch.pcss";
@import "./structures/_RoomStatusBar.pcss";
@import "./structures/_RoomView.pcss";
@import "./structures/_ScrollPanel.pcss";
@import "./structures/_SearchBox.pcss";
@import "./structures/_SpaceHierarchy.pcss";
@import "./structures/_SpacePanel.pcss";
Expand Down
16 changes: 13 additions & 3 deletions res/css/structures/_RoomView.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,20 @@ limitations under the License.
li {
clear: both;
}
}

.mx_RoomView--local .mx_ScrollPanel .mx_RoomView_MessageList {
justify-content: center;
.mx_ScrollPanel & {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;

content-visibility: auto;
contain-intrinsic-size: 50px;
}

.mx_RoomView--local .mx_ScrollPanel & {
justify-content: center;
}
}

li.mx_RoomView_myReadMarker_container {
Expand Down
27 changes: 0 additions & 27 deletions res/css/structures/_ScrollPanel.pcss

This file was deleted.

0 comments on commit d2fa0af

Please sign in to comment.