fix: bad breakpoints, padding

This commit is contained in:
enscribe 2024-12-30 12:33:18 -08:00
parent 781a437da3
commit 5504649890
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
4 changed files with 7 additions and 8 deletions

4
package-lock.json generated
View file

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

View file

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

View file

@ -42,7 +42,7 @@ function buildToc(headings: Heading[]): Heading[] {
class="group col-start-2 mx-4 block rounded-xl border p-4 xl:hidden" class="group col-start-2 mx-4 block rounded-xl border p-4 xl:hidden"
> >
<summary <summary
class="flex cursor-pointer items-center justify-between text-xl font-semibold" class="flex cursor-pointer items-center justify-between pb-4 text-xl font-semibold"
> >
Table of Contents Table of Contents
<Icon <Icon
@ -56,9 +56,8 @@ function buildToc(headings: Heading[]): Heading[] {
type="always" type="always"
> >
<nav> <nav>
<ul class="pt-3"> <ul></ul>
{toc.map((heading) => <TableOfContentsHeading heading={heading} />)} {toc.map((heading) => <TableOfContentsHeading heading={heading} />)}
</ul>
</nav> </nav>
</ScrollArea> </ScrollArea>
</details> </details>

View file

@ -10,7 +10,7 @@ const { heading } = Astro.props
> >
<Link <Link
href={'#' + heading.slug} href={'#' + heading.slug}
class="py-1 underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit" class="underline decoration-transparent underline-offset-[3px] transition-colors duration-200 hover:decoration-inherit py-1 xl:py-0"
> >
{heading.text} {heading.text}
</Link> </Link>