Skip to content

Commit c1f5546

Browse files
committed
Fix responsive design of accordian.
1 parent fb53498 commit c1f5546

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/accordion/accordion.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface Props {
77
const { title, id } = Astro.props;
88
---
99

10-
<details class="group mb-4" id={id} data-faq>
10+
<details class="group mb-4 md:w-[65ch]" id={id} data-faq>
1111
<summary
1212
aria-expanded="false"
1313
aria-controls={id}
@@ -23,9 +23,6 @@ const { title, id } = Astro.props;
2323
</div>
2424
</details>
2525
<style>
26-
details {
27-
width:65ch;
28-
}
2926
.arrow {
3027
font-size:25px;
3128
line-height: 1.25;

0 commit comments

Comments
 (0)