fix: bad TableOfContentsHeading y-padding

This commit is contained in:
enscribe 2024-12-30 01:25:46 -08:00
parent 86312d32ee
commit 781a437da3
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "astro-erudite",
"version": "1.2.1",
"version": "1.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "astro-erudite",
"version": "1.2.1",
"version": "1.2.2",
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/markdown-remark": "^6.0.1",

View file

@ -1,7 +1,7 @@
{
"name": "astro-erudite",
"type": "module",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"scripts": {
"dev": "astro dev",

View file

@ -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>