From 7a71296e6d285421f3f4267c003abdc96de87638 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 5 Oct 2026 12:12:59 +0200 Subject: [PATCH] fix: questions and answers are all open instead of an accordion Opening one question pushed everything below it down. The answers are two or three lines long, so they are simply shown: two columns on wide screens, one on phones. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/home/Faq.tsx | 30 ++++++++++++---------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/apps/web/src/components/home/Faq.tsx b/apps/web/src/components/home/Faq.tsx index f23082a..1ce2e31 100644 --- a/apps/web/src/components/home/Faq.tsx +++ b/apps/web/src/components/home/Faq.tsx @@ -1,26 +1,22 @@ import * as React from "react"; import type { FaqItem } from "@/src/content/types"; +/** + * Faq: a handful of short questions with their answers, all open. No accordion: + * opening one pushed everything below it down (owner feedback), and with + * answers of two or three lines there is nothing worth hiding. + */ export const Faq: React.FC<{ items: readonly FaqItem[] }> = ({ items }) => ( -
+
{items.map((item) => ( -
- +
+
{item.question} - -
-

+ +

{item.answer} -

-
+ +
))} - + );