Skip to content

Commit 9f635ac

Browse files
author
Eric Wheeler
committed
fix: remove unused forceWrap prop from ChatRow
The forceWrap prop was being passed to CodeBlock but was not defined in CodeBlockProps interface or used in the component. Removing it resolves the type error without changing behavior. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 1584587 commit 9f635ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,7 @@ export const ChatRowContent = ({
737737
backgroundColor: "var(--vscode-editor-background)",
738738
borderTop: "none",
739739
}}>
740-
<CodeBlock
741-
source={`${"```"}plaintext\n${message.text || ""}\n${"```"}`}
742-
forceWrap={true}
743-
/>
740+
<CodeBlock source={`${"```"}plaintext\n${message.text || ""}\n${"```"}`} />
744741
</div>
745742
)}
746743
</div>
@@ -1184,7 +1181,6 @@ export const ChatRowContent = ({
11841181
language="json"
11851182
isExpanded={true}
11861183
onToggleExpand={onToggleExpand}
1187-
forceWrap={true}
11881184
/>
11891185
</div>
11901186
)}

0 commit comments

Comments
 (0)