Fixed Overflowing Text message when user passed a very long string without spaces

This commit is contained in:
Arnab Ghosh
2023-10-05 14:44:18 +05:30
committed by GitHub
parent 6c3ed5e533
commit 437bd13fd0

View File

@@ -43,7 +43,7 @@ const ConversationBubble = forwardRef<
<div ref={ref} className={`flex flex-row-reverse self-end ${className}`}>
<Avatar className="mt-2 text-2xl" avatar="🧑‍💻"></Avatar>
<div className="mr-2 ml-10 flex items-center rounded-3xl bg-blue-1000 p-3.5 text-white">
<ReactMarkdown className="whitespace-pre-wrap break-words">
<ReactMarkdown className="whitespace-pre-wrap break-all">
{message}
</ReactMarkdown>
</div>