Skip to content

Commit

Permalink
fix: add space wrap for html
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn committed Mar 26, 2024
1 parent 1993b72 commit 36e932f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/ui/html/chat/chat-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function ChatItem(message: Message) {
return (
<div className="flex items-start gap-4 pt-5">
<ChatAvatar {...message} />
<p className="break-words">{message.content}</p>
<p className="break-words whitespace-pre-wrap">{message.content}</p>
</div>
);
}

0 comments on commit 36e932f

Please sign in to comment.