File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/gitbook/src/components/PageAside Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook " : patch
3
+ ---
4
+
5
+ Fix scroll of page outline
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export function PageAside(props: {
109
109
>
110
110
< PageAsideHeader context = { context } />
111
111
{ page . layout . outline ? (
112
- < div >
112
+ < div className = "overflow-y-auto border-tint xl:max-2xl:page-api-block:border-t" >
113
113
{ document ? (
114
114
< React . Suspense fallback = { null } >
115
115
< PageAsideSections document = { document } context = { context } />
@@ -162,7 +162,7 @@ async function PageAsideSections(props: { document: JSONDocument; context: GitBo
162
162
const sections = await getDocumentSections ( context , document ) ;
163
163
164
164
return sections . length > 1 ? (
165
- < div className = "-mt-8 overflow-y-auto border-tint pt-8 pb-5 empty:hidden xl:max-2xl:page-api-block:mt-0 xl:max-2xl:border-t xl:max-2xl:page-api-block:p-2" >
165
+ < div className = "-mt-8 pt-8 pb-5 empty:hidden xl:max-2xl:page-api-block:mt-0 xl:max-2xl:page-api-block:p-2" >
166
166
< ScrollSectionsList sections = { sections } />
167
167
</ div >
168
168
) : null ;
You can’t perform that action at this time.
0 commit comments