Skip to content

Commit 78d5af4

Browse files
committed
Fix long strings correctly in ChatRow
1 parent 12f0e42 commit 78d5af4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,10 @@ export const ChatRowContent = ({
617617
color: "var(--vscode-badge-foreground)",
618618
borderRadius: "3px",
619619
padding: "9px",
620-
whiteSpace: "pre-line",
621-
wordWrap: "break-word",
620+
overflow: "hidden",
621+
whiteSpace: "pre-wrap",
622+
wordBreak: "break-word",
623+
overflowWrap: "anywhere",
622624
}}>
623625
<div
624626
style={{

0 commit comments

Comments
 (0)