Skip to content

Commit 8ed240d

Browse files
authored
Merge pull request #813 from maiieul/fix-toc#2
Fix-toc#2
2 parents e14407e + f6baa73 commit 8ed240d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/website/src/components/mdx-components/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const components: Record<string, Component> = {
2424
<h1
2525
{...props}
2626
class={[
27-
cn('mb-6 scroll-mt-32 pt-6 text-3xl font-extrabold md:text-5xl', props.class),
27+
cn('mb-6 scroll-mt-24 pt-6 text-3xl font-extrabold md:text-5xl', props.class),
2828
]}
2929
>
3030
<Slot />
@@ -37,7 +37,7 @@ export const components: Record<string, Component> = {
3737
{...props}
3838
class={[
3939
cn(
40-
'mb-8 mt-20 scroll-mt-32 border-b-2 pb-2 text-2xl font-extrabold',
40+
'mb-8 mt-20 scroll-mt-24 border-b-2 pb-2 text-2xl font-extrabold',
4141
props.class,
4242
),
4343
]}

apps/website/src/components/toc/toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const useActiveItem = (itemIds: string[]) => {
3838
}
3939
});
4040
},
41-
{ rootMargin: `0% 0% -90% 0%` },
41+
{ rootMargin: `0% 0% -85% 0%` },
4242
);
4343

4444
itemIds.forEach((id) => {

0 commit comments

Comments
 (0)