Fix code block wrapping behavior

This commit is contained in:
Saoud Rizwan 2024-07-31 10:18:24 -04:00
parent 9467583938
commit c69b515345

View file

@ -187,7 +187,7 @@ const ChatRow: React.FC<ChatRowProps> = ({
<code
{...rest}
className={className}
style={{ whiteSpace: "pre-line", wordBreak: "break-all" }}>
style={{ whiteSpace: "pre-line", wordBreak: "break-word" }}>
{children}
</code>
)