Skip to content

Commit

Permalink
Avoid sidebar scrollbar hiding behind navbar (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Jan 9, 2024
1 parent 8994d00 commit 90fe8da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-pants-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Fixes sidebar scrollbar hiding behind navbar
3 changes: 1 addition & 2 deletions packages/starlight/components/PageFrame.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ const { hasSidebar, labels } = Astro.props;
visibility: var(--sl-sidebar-visibility, hidden);
position: fixed;
z-index: var(--sl-z-index-menu);
inset-block: 0;
inset-block: var(--sl-nav-height) 0;
inset-inline-start: 0;
padding-top: var(--sl-nav-height);
width: 100%;
background-color: var(--sl-color-black);
overflow-y: auto;
Expand Down

1 comment on commit 90fe8da

@vercel
Copy link

@vercel vercel bot commented on 90fe8da Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.