Skip to content

Commit

Permalink
fix(docs): fixed article's margin
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed May 5, 2024
1 parent 7fa9044 commit 89e01b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions docs/src/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ const PostLayout: PageComponent = async ({ params }) => {
</div>
</div>
</nav>
<article className="w-full min-w-0 md:py-8">
<div className="w-full min-w-0 max-w-6xl px-6 py-4 md:px-12 flex flex-col">
<Content components={tocHeadingMdxComponents} />
</div>
<article className="w-full min-w-0 p-6 md:px-12 md:pb-12 xl:pt-12 flex flex-col">
<Content components={tocHeadingMdxComponents} />
</article>
</TocProvider>
);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(({ id, varia
{id && (
<a
href={`#${id}`}
className="ml-2 hidden text-slate-400 group-hover:inline group-focus:inline group-active:inline dark:text-slate-600"
className="ml-2 hidden text-comment group-hover:inline group-focus:inline group-active:inline"
aria-label="Permalink for this section"
>
#
Expand Down

0 comments on commit 89e01b9

Please sign in to comment.