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