Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 8f8724b

Browse files
mickaelzhangrakannimer
authored andcommitted
fix(gatsby-theme-docz): sidebar mobile position (#1258)
1 parent e6d88d9 commit 8f8724b

File tree

1 file changed

+4
-2
lines changed
  • core/gatsby-theme-docz/src/components/Sidebar

1 file changed

+4
-2
lines changed

core/gatsby-theme-docz/src/components/Sidebar/styles.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ export const global = {
66
},
77
}
88

9+
const HEADER_HEIGHT = 81
10+
911
export const overlay = ({ open }) => ({
1012
zIndex: 999,
1113
position: 'fixed',
12-
top: 88,
14+
top: HEADER_HEIGHT,
1315
right: 0,
1416
bottom: 0,
1517
left: 0,
@@ -37,7 +39,7 @@ export const wrapper = ({ open }) => ({
3739
zIndex: 9999,
3840
display: 'block',
3941
position: 'fixed',
40-
top: 88,
42+
top: HEADER_HEIGHT,
4143
left: 0,
4244
bottom: 0,
4345
width: 256,

0 commit comments

Comments
 (0)