[dyad] Restored FAQ schema labels - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-20 15:18:47 +01:00
parent 06b0d27857
commit aca2cad7c7

View File

@@ -105,9 +105,19 @@ const FaqQuestion = ({ item }: { item: any }) => {
item.acceptedAnswer?.text item.acceptedAnswer?.text
) { ) {
return ( return (
<div className="p-2 border rounded-md bg-background text-sm"> <div className="p-2 border rounded-md bg-background text-sm space-y-1">
<p className="font-semibold text-muted-foreground">{item.name}</p> <div className="grid grid-cols-[auto_1fr] gap-x-2 items-baseline">
<p className="mt-1 text-foreground">{item.acceptedAnswer.text}</p> <strong className="font-semibold text-muted-foreground">
Question:
</strong>
<p className="text-foreground">{item.name}</p>
</div>
<div className="grid grid-cols-[auto_1fr] gap-x-2 items-baseline">
<strong className="font-semibold text-muted-foreground">
Answer:
</strong>
<p className="text-foreground">{item.acceptedAnswer.text}</p>
</div>
</div> </div>
); );
} }