Skip to content

Commit df58156

Browse files
author
Jan Stevens
committed
fix: use gap for accordion instead of margin, dont set fixed height
1 parent f912b6e commit df58156

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/layouts/AccordionLayout.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const { title, icon } = Astro.props;
88
<div class="collapse collapse-arrow ease-in-out duration-300">
99
<input aria-label={title} type="checkbox" />
1010
<div class="collapse-title font-extrabold tracking-tight md:text-2xl">
11-
<div class="flex items-center">
12-
<Icon name={icon} class="w-8 h-8 mr-4" />
11+
<div class="flex items-center gap-3 md:gap-4">
12+
<Icon name={icon} class="w-8 h-8" />
1313
<span>{title}</span>
1414
</div>
1515
</div>

src/pages/index.astro

+1-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ import { Icon } from 'astro-icon/components';
7575
class="divider mx-auto h-fit max-w-3xl w-[95vw] flex flex-nowrap bg-secondary"
7676
>
7777
</div>
78-
<main
79-
class="mx-auto flex-grow max-h-[90vh] md:max-h-[70vh] max-w-3xl py-2 grid w-[95vw]"
80-
>
78+
<main class="mx-auto flex-grow max-w-3xl py-2 grid w-[95vw]">
8179
<div class="container">
8280
<Container />
8381
</div>

0 commit comments

Comments
 (0)