ui: use absolute positionning when possible to optimize browse layout calculation (flexbox performs much worse)
This commit is contained in:
parent
6636f4a7e2
commit
707303252b
3 changed files with 38 additions and 7 deletions
|
|
@ -193,8 +193,22 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
// optimize layout recalc
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
> inner {
|
||||
margin: calc(var(--widget-spacing) / 2);
|
||||
|
||||
// optimize layout recalc
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue