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

Commit

Permalink
Merge pull request #6672 from matrix-org/palid/rcfix/layers-perf-boost
Browse files Browse the repository at this point in the history
[Release]Increase general app performance by optimizing layers
  • Loading branch information
dbkr authored Aug 25, 2021
2 parents b5f377d + 9726821 commit 60995bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions res/css/structures/_BackdropPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ limitations under the License.
width: 100%;
overflow: hidden;
filter: blur(var(--lp-background-blur));
// Force a new layer for the backdropPanel so it's better hardware supported
transform: translateZ(0);
}

.mx_BackdropPanel--image {
Expand Down
4 changes: 4 additions & 0 deletions res/css/structures/_LeftPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ $roomListCollapsedWidth: 68px;
.mx_LeftPanel_wrapper {
display: flex;
max-width: 50%;
position: relative;

// Contain the amount of layers rendered by constraining what actually needs re-layering via css
contain: layout paint;

.mx_LeftPanel_wrapper--user {
background-color: $roomlist-bg-color;
Expand Down
3 changes: 2 additions & 1 deletion res/css/structures/_RoomView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ limitations under the License.
flex: 1;
position: relative;
justify-content: center;
// Contain the amount of layers rendered by constraining what actually needs re-layering via css
contain: strict;
}

.mx_RoomView {
Expand Down Expand Up @@ -163,7 +165,6 @@ limitations under the License.
flex: 1;
display: flex;
flex-direction: column;
contain: content;
}

.mx_RoomView_statusArea {
Expand Down
1 change: 1 addition & 0 deletions res/css/structures/_ScrollPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.
*/

.mx_ScrollPanel {
contain: strict;

.mx_RoomView_MessageList {
position: relative;
Expand Down

0 comments on commit 60995bf

Please sign in to comment.