Skip to content

Commit

Permalink
fix sidebar not showing on mobile when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
trueberryless committed Jun 9, 2024
1 parent f49d95e commit 8f1ac25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/starlight-view-modes/components/ViewModes.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@
/* -------------------------------------------------------------------- Sidebar ------------------------------------------------------------------- */

&.view-modes-zen-mode-sidebar-disabled {
#starlight__sidebar {
display: none;
@media (min-width: 50rem) {
#starlight__sidebar {
display: none;
}
}

main {
Expand Down

0 comments on commit 8f1ac25

Please sign in to comment.