refactor(grid): avoid sidebar layout shift when main content loads slowly (#677)

Co-authored-by: Luguoba <80254980+luguoba@users.noreply.github.com>
This commit is contained in:
星の光
2022-10-21 13:06:06 +02:00
committed by GitHub
co-authored by Luguoba
parent 299b80c5f8
commit ae497c4789
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -3,10 +3,12 @@
margin-right: auto;
.left-sidebar {
order: -3;
max-width: var(--left-sidebar-max-width);
}
.right-sidebar {
order: -1;
max-width: var(--right-sidebar-max-width);
/// Display right sidebar when min-width: lg
@@ -73,6 +75,7 @@
}
main.main {
order: -2;
min-width: 0;
max-width: 100%;
flex-grow: 1;