@@ -55,11 +55,11 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
5555 'theme-bold:shadow-tint-12/2'
5656 ) }
5757 >
58- < div className = { tcls ( ' scroll-nojump' ) } >
58+ < div className = " scroll-nojump" >
5959 < div
6060 className = { tcls (
6161 'gap-4' ,
62- 'lg:gap-8 ' ,
62+ 'lg:gap-6 ' ,
6363 'flex' ,
6464 'items-center' ,
6565 'justify-between' ,
@@ -72,7 +72,7 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
7272 >
7373 < div
7474 className = { tcls (
75- 'flex max-w-full' ,
75+ 'flex max-w-full lg:basis-72 ' ,
7676 'min-w-0 shrink items-center justify-start gap-2 lg:gap-4'
7777 ) }
7878 >
@@ -90,25 +90,28 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
9090 < HeaderLogo context = { context } />
9191 </ div >
9292
93- { customization . header . links . length > 0 && (
94- < HeaderLinks >
95- { customization . header . links . map ( ( link , index ) => {
96- return < HeaderLink key = { index } link = { link } context = { context } /> ;
97- } ) }
98- < HeaderLinkMore
99- label = { t ( getSpaceLanguage ( customization ) , 'more' ) }
100- links = { customization . header . links }
101- context = { context }
102- />
103- </ HeaderLinks >
104- ) }
10593 < div
10694 className = { tcls (
10795 'flex' ,
108- 'md:min-w-56' ,
10996 'grow-0' ,
11097 'shrink-0' ,
111- 'justify-self-end'
98+ 'md:basis-56' ,
99+ 'justify-self-end' ,
100+ 'search' in customization . styling &&
101+ customization . styling . search === 'prominent'
102+ ? [
103+ 'md:grow-[0.8]' ,
104+ 'lg:basis-40' ,
105+ 'max-w-lg' ,
106+ 'lg:ml-[max(calc((100%-18rem-48rem-3rem)/2),1.5rem)]' , // container (100%) - sidebar (18rem) - content (48rem) - margin (3rem)
107+ 'xl:ml-[max(calc((100%-18rem-48rem-14rem-3rem)/2),1.5rem)]' , // container (100%) - sidebar (18rem) - content (48rem) - outline (14rem) - margin (3rem)
108+ 'page-no-toc:lg:ml-[max(calc((100%-18rem-48rem-18rem-3rem)/2),0rem)]' ,
109+ 'page-full-width:lg:ml-6' ,
110+ 'lg:mr-auto' ,
111+ 'order-last' ,
112+ 'md:order-[unset]' ,
113+ ]
114+ : [ 'order-last' ]
112115 ) }
113116 >
114117 < Suspense fallback = { null } >
@@ -137,6 +140,7 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
137140
138141 'theme-bold:shadow-none' ,
139142 'theme-bold:hover:shadow-none' ,
143+ 'whitespace-nowrap' ,
140144 ] }
141145 >
142146 < span className = { tcls ( 'flex-1' ) } >
@@ -151,6 +155,25 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
151155 </ SearchButton >
152156 </ Suspense >
153157 </ div >
158+
159+ { customization . header . links . length > 0 && (
160+ < HeaderLinks >
161+ { customization . header . links . map ( ( link ) => {
162+ return (
163+ < HeaderLink
164+ key = { link . title }
165+ link = { link }
166+ context = { context }
167+ />
168+ ) ;
169+ } ) }
170+ < HeaderLinkMore
171+ label = { t ( getSpaceLanguage ( customization ) , 'more' ) }
172+ links = { customization . header . links }
173+ context = { context }
174+ />
175+ </ HeaderLinks >
176+ ) }
154177 </ div >
155178 </ div >
156179 </ div >
0 commit comments