mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Merge pull request #6672 from matrix-org/palid/rcfix/layers-perf-boost
[Release]Increase general app performance by optimizing layers
This commit is contained in:
commit
60995bf2ef
4 changed files with 9 additions and 1 deletions
|
@ -22,6 +22,8 @@ limitations under the License.
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
filter: blur(var(--lp-background-blur));
|
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 {
|
.mx_BackdropPanel--image {
|
||||||
|
|
|
@ -26,6 +26,10 @@ $roomListCollapsedWidth: 68px;
|
||||||
.mx_LeftPanel_wrapper {
|
.mx_LeftPanel_wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 50%;
|
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 {
|
.mx_LeftPanel_wrapper--user {
|
||||||
background-color: $roomlist-bg-color;
|
background-color: $roomlist-bg-color;
|
||||||
|
|
|
@ -20,6 +20,8 @@ limitations under the License.
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
// Contain the amount of layers rendered by constraining what actually needs re-layering via css
|
||||||
|
contain: strict;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomView {
|
.mx_RoomView {
|
||||||
|
@ -163,7 +165,6 @@ limitations under the License.
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
contain: content;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomView_statusArea {
|
.mx_RoomView_statusArea {
|
||||||
|
|
|
@ -15,6 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_ScrollPanel {
|
.mx_ScrollPanel {
|
||||||
|
contain: strict;
|
||||||
|
|
||||||
.mx_RoomView_MessageList {
|
.mx_RoomView_MessageList {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in a new issue