Skip to content

Commit 240c6e6

Browse files
committed
Remove redundant margin
1 parent 9a30e04 commit 240c6e6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/faq-aggregator/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function FaqH1({ id, children }: { id?: string; children?: ReactNode }) {
2626
function FaqH2({ id, children }: { id?: string; children?: ReactNode }) {
2727
const slug = id ?? slugify(String(children))
2828
return (
29-
<details className="group border-b border-neu-100 dark:border-neu-200 [&:first-of-type]:border-t">
29+
<details className="group border-b border-neu-100 dark:border-neu-200 [&:first-of-type]:border-t [&>p:first-of-type]:!mt-0">
3030
<summary className="flex cursor-pointer list-none items-center justify-between gap-4 py-4 [&::-webkit-details-marker]:hidden">
3131
<h3 id={slug} className="typography-body-lg text-neu-900">
3232
{children}
@@ -82,10 +82,7 @@ export function FaqAggregator({ children }: { children: ReactNode }) {
8282
}
8383

8484
if (answerContent.length > 0) {
85-
const wrapper = document.createElement("div")
86-
wrapper.className = "pb-4"
87-
answerContent.forEach(node => wrapper.appendChild(node))
88-
detail.appendChild(wrapper)
85+
answerContent.forEach(node => detail.appendChild(node))
8986
}
9087
})
9188

0 commit comments

Comments
 (0)