Skip to content

Commit 9d1a69b

Browse files
committed
fix(ui): Correct sidebar height calculation on mobile devices
1 parent 3880d1d commit 9d1a69b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/starlight-overrides/PageFrame.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ const { hasSidebar } = Astro.locals.starlightRoute;
5555
.sidebar-pane {
5656
visibility: var(--sl-sidebar-visibility, hidden);
5757
position: fixed;
58-
height: 100vh;
58+
height: calc(100dvh - var(--sl-nav-height));
5959
z-index: var(--sl-z-index-menu);
60-
inset-block: var(--sl-nav-height) 0;
6160
inset-inline-start: 0;
6261
width: 100%;
6362
background-color: var(--sl-color-black);
6463
overflow-y: auto;
64+
top: var(--sl-nav-height);
6565
}
6666

6767
:global([aria-expanded="true"]) ~ .sidebar-pane {

0 commit comments

Comments
 (0)