mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix codeblock colors
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)",
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
Reference in New Issue
Block a user