Fix codeblock colors

This commit is contained in:
Saoud Rizwan
2024-09-10 20:00:09 -04:00
parent 87c91df60e
commit bc61c5b06f
2 changed files with 4 additions and 4 deletions

View File

@@ -534,7 +534,7 @@ const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifiedMessa
<div
style={{
borderRadius: 3,
border: "1px solid var(--vscode-sideBar-border)",
border: "1px solid var(--vscode-editorGroup-border)",
overflow: "hidden",
backgroundColor: CODE_BLOCK_BG_COLOR,
}}>
@@ -682,7 +682,7 @@ const Markdown = memo(({ markdown }: { markdown?: string }) => {
<div
style={{
borderRadius: 3,
border: "1px solid var(--vscode-sideBar-border)",
border: "1px solid var(--vscode-editorGroup-border)",
overflow: "hidden",
}}>
<CodeBlock

View File

@@ -1,6 +1,6 @@
import { memo, useMemo } from "react"
import { getLanguageFromPath } from "../utils/getLanguageFromPath"
import CodeBlock from "./CodeBlock"
import CodeBlock, { CODE_BLOCK_BG_COLOR } from "./CodeBlock"
interface CodeAccordianProps {
code?: string
@@ -30,7 +30,7 @@ const CodeAccordian = ({ code, diff, language, path, isFeedback, isExpanded, onT
<div
style={{
borderRadius: 3,
backgroundColor: "var(--vscode-editor-background)",
backgroundColor: CODE_BLOCK_BG_COLOR,
overflow: "hidden", // This ensures the inner scrollable area doesn't overflow the rounded corners
border: "1px solid var(--vscode-editorGroup-border)",
}}>