mirror of
https://github.com/System-End/campfire.git
synced 2026-04-19 22:05:14 +00:00
fix: don't make FAQ answers act like buttons
This commit is contained in:
parent
6a57627dc4
commit
ec1be988fd
1 changed files with 8 additions and 5 deletions
|
|
@ -13,11 +13,14 @@ function FaqQuestion({ question, children }: FaqQuestionProps) {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center w-full md:w-[467px] cursor-pointer" onClick={toggleExpanded}>
|
||||
<div className={`
|
||||
bg-[#8d3f34] shadow-[8px_8px_0px_0px_#733a32] flex flex-col items-center justify-center md:w-full px-12 py-8 md:py-16 transition-all duration-200 hover:scale-105
|
||||
${isExpanded ? "w-full" : `${question.length < 20 ? "w-max" : "w-full"}`}
|
||||
`}>
|
||||
<div className="flex flex-col items-center w-full md:w-[467px]">
|
||||
<div
|
||||
onClick={toggleExpanded}
|
||||
className={`
|
||||
bg-[#8d3f34] shadow-[8px_8px_0px_0px_#733a32] flex flex-col items-center justify-center md:w-full px-12 py-8 md:py-16 transition-all duration-200 hover:scale-105 cursor-pointer select-none
|
||||
${isExpanded ? "w-full" : `${question.length < 20 ? "w-max" : "w-full"}`}
|
||||
`}
|
||||
>
|
||||
<p
|
||||
className="text-white text-4xl text-center font-bold leading-none w-full font-ember-and-fire"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue