Skip to content

Commit f6baa73

Browse files
committed
fix(toc): reduce h1 and h2 scroll-mt to 24
1 parent 6626767 commit f6baa73

File tree

1 file changed

+2
-2
lines changed
  • apps/website/src/components/mdx-components

1 file changed

+2
-2
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
]}

0 commit comments

Comments
 (0)