Preserve newlines in chat (#39)

This commit is contained in:
mattherzog
2024-03-08 21:27:35 -08:00
committed by GitHub
parent a38f0514b9
commit c4d8985667

View File

@@ -23,7 +23,9 @@ export const ChatMessage = ({
<div
className={`pr-4 text-${
isSelf ? "gray-300" : accentColor + "-500"
} text-sm ${isSelf ? "" : "drop-shadow-" + accentColor}`}
} text-sm ${
isSelf ? "" : "drop-shadow-" + accentColor
} whitespace-pre-line`}
>
{message}
</div>