Skip to content

Commit

Permalink
fix: bad breakpoints, padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jktrn committed Dec 30, 2024
1 parent 781a437 commit 5504649
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 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.2",
"version": "1.2.3",
"private": true,
"scripts": {
"dev": "astro dev",
Expand Down
7 changes: 3 additions & 4 deletions src/components/TableOfContents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function buildToc(headings: Heading[]): Heading[] {
class="group col-start-2 mx-4 block rounded-xl border p-4 xl:hidden"
>
<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
<Icon
Expand All @@ -56,9 +56,8 @@ function buildToc(headings: Heading[]): Heading[] {
type="always"
>
<nav>
<ul class="pt-3">
{toc.map((heading) => <TableOfContentsHeading heading={heading} />)}
</ul>
<ul></ul>
{toc.map((heading) => <TableOfContentsHeading heading={heading} />)}
</nav>
</ScrollArea>
</details>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableOfContentsHeading.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { heading } = Astro.props
>
<Link
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}
</Link>
Expand Down

0 comments on commit 5504649

Please sign in to comment.