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

Increase general app performance by optimizing layers #6644

Merged
merged 3 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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