Fix Mastodon widget line breaks not displaying

Added whitespace-pre-line CSS class to preserve line breaks in
Mastodon post content. Previously, newline characters were being
collapsed into single spaces by default HTML whitespace handling.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-14 12:43:18 +08:00
parent ee2eb4796e
commit 35df76cd13

View File

@@ -121,7 +121,7 @@ export function MastodonFeed() {
)} )}
{/* Content */} {/* Content */}
<p className="text-sm leading-relaxed text-slate-700 dark:text-slate-200"> <p className="whitespace-pre-line text-sm leading-relaxed text-slate-700 dark:text-slate-200">
{truncated} {truncated}
</p> </p>