File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' gitbook ' : minor
3
+ ---
4
+
5
+ Fix an issue where the active site section indicator appeared above any dropdowns.
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ export function Dropdown<E extends HTMLElement>(props: {
44
44
'absolute' ,
45
45
'top-full' ,
46
46
'left-0' ,
47
- 'z-20' ,
48
47
'origin-top-left' ,
49
48
'invisible' ,
50
49
'transition-opacity' ,
Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ export function Header(props: {
72
72
) }
73
73
>
74
74
< HeaderLogo site = { site } space = { space } customization = { customization } />
75
- < span >
75
+ < div className = "z-20" >
76
76
{ ! hasSiteSections && isMultiVariants ? (
77
77
< SpacesDropdown space = { space } spaces = { spaces } />
78
78
) : null }
79
- </ span >
79
+ </ div >
80
80
< HeaderLinks >
81
81
{ customization . header . links . map ( ( link , index ) => {
82
82
return (
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function HeaderLinkMore(props: {
43
43
) ;
44
44
45
45
return (
46
- < div className = { `${ styles . linkEllipsis } items-center` } >
46
+ < div className = { `${ styles . linkEllipsis } items-center z-20 ` } >
47
47
< Dropdown button = { renderButton } className = "-translate-x-48 md:translate-x-0" >
48
48
< DropdownMenu >
49
49
{ links . map ( ( link , index ) => (
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export async function HeaderLinks({ children }: HeaderLinksProps) {
13
13
< div
14
14
className = { tcls (
15
15
styles . containerHeaderlinks ,
16
- 'flex justify-end items-center gap-x-2.5 mr-2.5 lg:gap-x-5 lg:mr-2.5 *:max-w-56' ,
16
+ 'flex justify-end items-center gap-x-2.5 mr-2.5 lg:gap-x-5 lg:mr-2.5 *:max-w-56 z-20 ' ,
17
17
) }
18
18
>
19
19
{ children }
You can’t perform that action at this time.
0 commit comments