Skip to content

Commit

Permalink
Fix sidebar toggle in portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
l0drex committed Apr 4, 2023
1 parent a1e3f33 commit aa2c7c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@

grid-template-areas:
"header"
"sidebar"
"main"
"footer";
grid-template-rows: auto auto 2fr auto;
grid-template-rows: auto 2fr auto;
}

#root > * {
Expand Down Expand Up @@ -73,6 +72,15 @@ li:not(:last-child) {
display: none;
}
}

#root.sidebar-visible {
grid-template-areas:
"header"
"sidebar"
"main"
"footer";
grid-template-rows: auto auto 2fr auto;
}
}

@media (orientation: landscape) {
Expand Down

0 comments on commit aa2c7c3

Please sign in to comment.