💄 Support line breaks in event description (#1105)

Fix #1104
This commit is contained in:
Luke Vella 2024-05-18 09:08:26 +08:00 committed by GitHub
parent aa9f2d9532
commit 559bf6a0d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ export function EventCard() {
<PollStatusBadge status={poll.status} />
</div>
{poll.description ? (
<p className="mt-4 min-w-0 text-wrap text-sm leading-relaxed">
<p className="mt-4 min-w-0 whitespace-pre-wrap text-pretty text-sm leading-relaxed">
<TruncatedLinkify>{poll.description}</TruncatedLinkify>
</p>
) : null}