fix(ui): apply coy theme after code props on ReasoningContent

This commit is contained in:
mubashir1osmani 2026-08-08 12:19:03 -07:00
parent 4aff515a8e
commit 757d5a4dcd

View file

@ -48,13 +48,13 @@ const ReasoningContent: React.FC<ReasoningContentProps> = ({ reasoningContent })
const match = /language-(\w+)/.exec(className || "");
return !inline && match ? (
<SyntaxHighlighter
style={coy as unknown as { [key: string]: React.CSSProperties }}
language={match[1]}
PreTag="div"
className="my-2 rounded-md"
wrapLines={true}
wrapLongLines={true}
{...props}
style={coy as { [key: string]: React.CSSProperties }}
>
{String(children).replace(/\n$/, "")}
</SyntaxHighlighter>