Skip to content

Commit 0c884f1

Browse files
authored
Merge pull request RooCodeInc#1216 from RooVetGit/jm/fix-overflow
Fix long strings correctly in ChatRow
2 parents 12f0e42 + f7d59e0 commit 0c884f1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/fluffy-apples-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Handle really long text in the ChatRow similar to TaskHeader

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)