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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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