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

Commit 60995bf

Browse files
authored
Merge pull request #6672 from matrix-org/palid/rcfix/layers-perf-boost
[Release]Increase general app performance by optimizing layers
2 parents b5f377d + 9726821 commit 60995bf

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

res/css/structures/_BackdropPanel.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ limitations under the License.
2222
width: 100%;
2323
overflow: hidden;
2424
filter: blur(var(--lp-background-blur));
25+
// Force a new layer for the backdropPanel so it's better hardware supported
26+
transform: translateZ(0);
2527
}
2628

2729
.mx_BackdropPanel--image {

res/css/structures/_LeftPanel.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ $roomListCollapsedWidth: 68px;
2626
.mx_LeftPanel_wrapper {
2727
display: flex;
2828
max-width: 50%;
29+
position: relative;
30+
31+
// Contain the amount of layers rendered by constraining what actually needs re-layering via css
32+
contain: layout paint;
2933

3034
.mx_LeftPanel_wrapper--user {
3135
background-color: $roomlist-bg-color;

res/css/structures/_RoomView.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ limitations under the License.
2020
flex: 1;
2121
position: relative;
2222
justify-content: center;
23+
// Contain the amount of layers rendered by constraining what actually needs re-layering via css
24+
contain: strict;
2325
}
2426

2527
.mx_RoomView {
@@ -163,7 +165,6 @@ limitations under the License.
163165
flex: 1;
164166
display: flex;
165167
flex-direction: column;
166-
contain: content;
167168
}
168169

169170
.mx_RoomView_statusArea {

res/css/structures/_ScrollPanel.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
.mx_ScrollPanel {
18+
contain: strict;
1819

1920
.mx_RoomView_MessageList {
2021
position: relative;

0 commit comments

Comments
 (0)