Skip to content

Commit 144d30d

Browse files
committed
fix: remove forced transparent background from code elements and fix JSX tag mismatch
- remove [&_code]:!bg-transparent and [&_code]:!p-0 classes from ChatInterface.jsx - fix div/span closing tag mismatch in CodeBlock.jsx
1 parent 8255ea1 commit 144d30d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ChatInterface.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ const MessageComponent = memo(({ message, index, prevMessage, createDiff, onFile
727727
) : (
728728
<div className="text-sm text-gray-700 dark:text-gray-300">
729729
{message.type === 'assistant' ? (
730-
<div className="prose prose-sm max-w-none dark:prose-invert prose-gray [&_code]:!bg-transparent [&_code]:!p-0">
730+
<div className="prose prose-sm max-w-none dark:prose-invert prose-gray">
731731
<ReactMarkdown
732732
components={{
733733
code: MarkdownCodeBlock,

src/components/CodeBlock.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const CodeBlock = memo(({
105105
>
106106
{code}
107107
</SyntaxHighlighter>
108-
</span>
108+
</div>
109109
);
110110

111111
return codeBlock;

0 commit comments

Comments
 (0)