Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions src/components/challenge-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,10 @@ export default function ChallengeCard({
>

<h1
className="text-xl md:text-2xl xl:text-3xl font-heading font-bold text-center capitalize"
className="text-xl md:text-2xl xl:text-3xl font-heading font-bold text-center capitalize mt-6"
style={{ color: textColor }}
>
{/* One word per line: `block` on each word rather than a width
constraint, so wrapping doesn't depend on the card's size. */}
{heading
?.trim()
.split(/\s+/)
.map((word, i) => (
<span key={`${word}-${i}`} className="block">
{word}
</span>
))}
{heading}
</h1>


Expand Down
Loading