From 72ea54980d7439f5c65fe12380eda3a5a70e17ae Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Wed, 21 Aug 2024 17:20:02 +0100 Subject: [PATCH] chore: run prettier --- packages/site/src/components/DocumentOutline.tsx | 6 ++++-- themes/article/app/components/Article.tsx | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/site/src/components/DocumentOutline.tsx b/packages/site/src/components/DocumentOutline.tsx index 6e2515c5..7db2ee8b 100644 --- a/packages/site/src/components/DocumentOutline.tsx +++ b/packages/site/src/components/DocumentOutline.tsx @@ -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, diff --git a/themes/article/app/components/Article.tsx b/themes/article/app/components/Article.tsx index 9f50e97d..04acab57 100644 --- a/themes/article/app/components/Article.tsx +++ b/themes/article/app/components/Article.tsx @@ -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 }} > - +