Merge pull request #6644 from matrix-org/palid/fix/layers-overwhelming
Increase general app performance by optimizing layers
This commit is contained in:
commit
536a9aec65
4 changed files with 9 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
@ -163,7 +165,6 @@ limitations under the License.
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
contain: content;
|
||||
}
|
||||
|
||||
.mx_RoomView_statusArea {
|
||||
|
|
|
@ -15,6 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_ScrollPanel {
|
||||
contain: strict;
|
||||
|
||||
.mx_RoomView_MessageList {
|
||||
position: relative;
|
||||
|
|
Loading…
Reference in a new issue