mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
Add support for sidebar-only layout
This commit is contained in:
@@ -50,16 +50,12 @@ export function CompactHeader(props: {
|
||||
'grow-0',
|
||||
'md:grow',
|
||||
'sm:max-w-xs',
|
||||
'lg:my-4',
|
||||
'lg:mt-2',
|
||||
'lg:mb-8',
|
||||
'lg:max-w-full',
|
||||
'justify-self-end',
|
||||
)}
|
||||
>
|
||||
{isMultiVariants ? (
|
||||
<div className={tcls('mb-2')}>
|
||||
<SpacesDropdown space={space} spaces={spaces} />
|
||||
</div>
|
||||
) : null}
|
||||
<React.Suspense fallback={null}>
|
||||
<SearchButton>
|
||||
<span className={tcls('flex-1')}>
|
||||
|
||||
@@ -106,7 +106,7 @@ export function SpaceLayout(props: {
|
||||
)
|
||||
}
|
||||
innerHeader={
|
||||
sections ? <SpacesDropdown space={space} spaces={spaces} /> : null
|
||||
sections || (!withTopHeader && site && spaces.length > 1) ? <SpacesDropdown space={space} spaces={spaces} /> : null
|
||||
}
|
||||
headerOffset={headerOffset}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user