fix: bad breakpoints, padding
This commit is contained in:
parent
781a437da3
commit
5504649890
4 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue