Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Aug 21, 2024
1 parent aeaa712 commit 72ea549
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/site/src/components/DocumentOutline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ function useMarginOccluder() {
if (!mainElementRef.current) {
return;
}
// Watch margin elements, or their direct descendents (as some margin elements have height set to zero)
const marginElements = mainElementRef.current.querySelectorAll('.col-margin-right, .col-margin-right > *');
// Watch margin elements, or their direct descendents (as some margin elements have height set to zero)
const marginElements = mainElementRef.current.querySelectorAll(
'.col-margin-right, .col-margin-right > *',
);
setElements(Array.from(marginElements));
},
500,
Expand Down
6 changes: 5 additions & 1 deletion themes/article/app/components/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export function Article({
className="block my-10 lg:sticky lg:top-0 lg:z-10 lg:h-0 lg:pt-0 lg:my-0 lg:ml-10 lg:col-margin-right"
style={{ top: top + TOP_OFFSET }}
>
<DocumentOutline className="relative pt-[2px]" maxdepth={outlineMaxDepth} isMargin={isOutlineMargin} >
<DocumentOutline
className="relative pt-[2px]"
maxdepth={outlineMaxDepth}
isMargin={isOutlineMargin}
>
<SupportingDocuments />
</DocumentOutline>
</div>
Expand Down

0 comments on commit 72ea549

Please sign in to comment.