Skip to content

Commit 88cd02f

Browse files
committed
Fixes
1 parent 53433ef commit 88cd02f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ export function SpaceLayout(props: {
126126
<TOCScrollContent
127127
context={context}
128128
innerHeader={
129-
!withTopHeader || isMultiVariants ? (
129+
(!withTopHeader && !!searchAndAI) ||
130+
(!withTopHeader && withSections && !!sections) ||
131+
(isMultiVariants && !sections) ? (
130132
// displays the search button and/or the space dropdown in the ToC according to the header/variant settings. E.g if there is no header, the search button will be displayed in the ToC.
131133
<>
132134
{!withTopHeader && searchAndAI}

packages/gitbook/src/components/TableOfContents/TOCScrollContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function TOCScrollContent(props: {
4343
<TOCScrollContainer // The scrollview inside the sidebar
4444
className={tcls(
4545
'flex flex-grow flex-col p-2',
46-
innerHeader ? 'mt-0 lg:mt-4' : 'mt-8 lg:mt-0',
46+
innerHeader ? 'mt-0 lg:mt-4' : 'mt-11 lg:mt-0',
4747
customization.trademark.enabled && 'pb-[4.5rem]',
4848
'gutter-stable overflow-y-auto',
4949
'[&::-webkit-scrollbar]:bg-transparent',

packages/gitbook/src/components/TableOfContents/TableOfContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function TableOfContents(props: {
103103

104104
{open ? (
105105
<Button
106-
variant="secondary"
106+
variant="blank"
107107
icon="close"
108108
iconOnly
109109
size="medium"

0 commit comments

Comments
 (0)