ui: use absolute positionning when possible to optimize browse layout calculation (flexbox performs much worse)

This commit is contained in:
bordun 2020-04-20 12:01:45 +02:00
parent 6636f4a7e2
commit 707303252b
3 changed files with 38 additions and 7 deletions

View file

@ -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;
}
}