소스 검색

Fix codeblock colors

Saoud Rizwan 1 년 전
부모
커밋
bc61c5b06f
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      webview-ui/src/components/ChatRow.tsx
  2. 2 2
      webview-ui/src/components/CodeAccordian.tsx

+ 2 - 2
webview-ui/src/components/ChatRow.tsx

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

+ 2 - 2
webview-ui/src/components/CodeAccordian.tsx

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