Skip to content

Commit

Permalink
Fix an issue where the space dropdown could appear behind the header. (
Browse files Browse the repository at this point in the history
  • Loading branch information
emmerich authored Nov 5, 2024
1 parent a2e5647 commit d843e5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-dodos-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': minor
---

Fix an issue where the space dropdown could appear behind the header.
2 changes: 1 addition & 1 deletion packages/gitbook/src/components/Header/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function Dropdown<E extends HTMLElement>(props: {
'absolute',
'top-full',
'left-0',
'z-10',
'z-20',
'origin-top-left',
'invisible',
'transition-opacity',
Expand Down
2 changes: 1 addition & 1 deletion packages/gitbook/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function Header(props: {
{sections ? (
<div
className={tcls(
'w-full shadow-thintop dark:shadow-light/1 bg-light dark:bg-dark z-[9] mt-0.5',
'w-full shadow-thintop dark:shadow-light/1 bg-light dark:bg-dark mt-0.5',
// Handle long section tabs, particularly on smaller screens.
'overflow-x-auto hide-scroll',
)}
Expand Down

0 comments on commit d843e5e

Please sign in to comment.