You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,7 +81,6 @@ export function SpaceLayout(props: {
104
81
)}
105
82
>
106
83
<TableOfContents
107
-
context={context}
108
84
header={
109
85
withTopHeader ? null : (
110
86
<div
@@ -122,48 +98,59 @@ export function SpaceLayout(props: {
122
98
</div>
123
99
)
124
100
}
125
-
innerHeader={
126
-
// 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.
// 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.
107
+
<>
108
+
{!withTopHeader&&(
109
+
<divclassName={tcls('hidden','lg:block')}>
110
+
<React.Suspensefallback={null}>
111
+
<SearchButton>
112
+
<spanclassName={tcls('flex-1')}>
113
+
{t(
114
+
getSpaceLanguage(customization),
115
+
customization.aiSearch.enabled
116
+
? 'search_or_ask'
117
+
: 'search'
118
+
)}
119
+
...
120
+
</span>
121
+
</SearchButton>
122
+
</React.Suspense>
123
+
</div>
161
124
)}
162
-
/>
163
-
)}
164
-
</>
165
-
}
166
-
/>
125
+
{!withTopHeader&&withSections&§ions&&(
126
+
<SiteSectionList
127
+
className={tcls('hidden','lg:block')}
128
+
sections={encodeClientSiteSections(
129
+
context,
130
+
sections
131
+
)}
132
+
/>
133
+
)}
134
+
{isMultiVariants&&(
135
+
<SpacesDropdown
136
+
context={context}
137
+
siteSpace={siteSpace}
138
+
siteSpaces={siteSpaces}
139
+
className={tcls(
140
+
'w-full',
141
+
'page-no-toc:hidden',
142
+
'site-header-none:page-no-toc:flex',
143
+
'mb-2',
144
+
// Set the height to match the close button of the mobile menu sheet
0 commit comments