Fix diff issues and code block style

This commit is contained in:
Saoud Rizwan
2024-07-25 21:22:03 -04:00
parent 44a4140486
commit c1e9ceccb9
3 changed files with 25 additions and 27 deletions

View File

@@ -133,6 +133,7 @@ const ChatRow: React.FC<ChatRowProps> = ({
maxWidth: "100%",
margin: 0,
padding: "10px",
// important to note that min-width: max-content is not required here how it is in CodeBlock.tsx
borderRadius: 3,
border: "1px solid var(--vscode-sideBar-border)",
fontSize: "var(--vscode-editor-font-size)",
@@ -141,7 +142,10 @@ const ChatRow: React.FC<ChatRowProps> = ({
}}
/>
) : (
<code {...rest} className={className}>
<code
{...rest}
className={className}
style={{ whiteSpace: "pre-line", wordBreak: "break-word" }}>
{children}
</code>
)