Fix line breaks rendering in event descriptions

Add whitespace-pre-wrap CSS class to preserve line breaks and formatting in event descriptions while maintaining proper text wrapping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Clas Wen 2025-09-27 12:33:09 +08:00
parent e2187b1f13
commit 3048475948

View file

@ -316,7 +316,7 @@ export default function Schedule() {
<span className="text-sm text-gray-600">{formatTimePair(event.start, event.end)}</span>
{
event.description && (
<p className="mt-2">{event.description}</p>
<p className="mt-2 whitespace-pre-wrap">{event.description}</p>
)
}
</div>