Skip to content

Commit e1b2cf6

Browse files
authored
Fix page outline scroll (#3563)
1 parent c0e9c49 commit e1b2cf6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/breezy-toes-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix scroll of page outline

packages/gitbook/src/components/PageAside/PageAside.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function PageAside(props: {
109109
>
110110
<PageAsideHeader context={context} />
111111
{page.layout.outline ? (
112-
<div>
112+
<div className="overflow-y-auto border-tint xl:max-2xl:page-api-block:border-t">
113113
{document ? (
114114
<React.Suspense fallback={null}>
115115
<PageAsideSections document={document} context={context} />
@@ -162,7 +162,7 @@ async function PageAsideSections(props: { document: JSONDocument; context: GitBo
162162
const sections = await getDocumentSections(context, document);
163163

164164
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">
166166
<ScrollSectionsList sections={sections} />
167167
</div>
168168
) : null;

0 commit comments

Comments
 (0)