Browse Source

Fix code block wrapping behavior

Saoud Rizwan 1 year ago
parent
commit
c69b515345
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webview-ui/src/components/ChatRow.tsx

+ 1 - 1
webview-ui/src/components/ChatRow.tsx

@@ -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>
 						)