fix: use group-open on padding

This commit is contained in:
enscribe 2024-12-30 15:57:20 -08:00
parent 5504649890
commit a84a9c5554
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "astro-erudite",
"version": "1.2.3",
"version": "1.2.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "astro-erudite",
"version": "1.2.3",
"version": "1.2.4",
"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.3",
"version": "1.2.4",
"private": true,
"scripts": {
"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"
>
<summary
class="flex cursor-pointer items-center justify-between pb-4 text-xl font-semibold"
class="flex cursor-pointer items-center justify-between text-xl font-semibold group-open:pb-4"
>
Table of Contents
<Icon