Skip to content

Commit 89e01b9

Browse files
committed
fix(docs): fixed article's margin
1 parent 7fa9044 commit 89e01b9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/src/app/docs/[[...slug]]/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ const PostLayout: PageComponent = async ({ params }) => {
4848
</div>
4949
</div>
5050
</nav>
51-
<article className="w-full min-w-0 md:py-8">
52-
<div className="w-full min-w-0 max-w-6xl px-6 py-4 md:px-12 flex flex-col">
53-
<Content components={tocHeadingMdxComponents} />
54-
</div>
51+
<article className="w-full min-w-0 p-6 md:px-12 md:pb-12 xl:pt-12 flex flex-col">
52+
<Content components={tocHeadingMdxComponents} />
5553
</article>
5654
</TocProvider>
5755
);

docs/src/components/Heading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(({ id, varia
1717
{id && (
1818
<a
1919
href={`#${id}`}
20-
className="ml-2 hidden text-slate-400 group-hover:inline group-focus:inline group-active:inline dark:text-slate-600"
20+
className="ml-2 hidden text-comment group-hover:inline group-focus:inline group-active:inline"
2121
aria-label="Permalink for this section"
2222
>
2323
#

0 commit comments

Comments
 (0)