Skip to content

Commit

Permalink
fix: bad TableOfContentsHeading y-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jktrn committed Dec 30, 2024
1 parent 86312d3 commit 781a437
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-erudite",
"type": "module",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"scripts": {
"dev": "astro dev",
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableOfContentsHeading.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const { heading } = Astro.props
---

<li
class="list-inside list-disc px-4 py-1.5 text-sm text-foreground/60 xl:list-none xl:p-0"
class="list-inside list-disc px-4 text-sm text-foreground/60 xl:list-none xl:p-0"
>
<Link
href={'#' + heading.slug}
class="toc-link underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
class="py-1 underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit"
>
{heading.text}
</Link>
Expand Down

0 comments on commit 781a437

Please sign in to comment.