feat: add prose-invert class to user-rendered markdown content in MarkdownRenderer.

This commit is contained in:
viettranx committed 2026-03-04 16:10:17 +07:00
1 parent 6c7e3251e2
commit b35dc56aff
1 file changed
+2 -2
+2 -2
View File
@@ -228,7 +228,7 @@ export function RichContent({ content, role }: RichContentProps) {
// If no special blocks found, render as plain markdown (fast path)
const first = blocks[0];
if (blocks.length === 1 && first?.type === "markdown") {
return <MarkdownRenderer content={content} className={role === "user" ? "text-sm" : ""} />;
return <MarkdownRenderer content={content} className={role === "user" ? "text-sm prose-invert" : ""} />;
}
return (
@@ -242,7 +242,7 @@ export function RichContent({ content, role }: RichContentProps) {
case "video-notice":
return <VideoNoticeBadge key={i} content={block.content} />;
case "markdown":
return <MarkdownRenderer key={i} content={block.content} className={role === "user" ? "text-sm" : ""} />;
return <MarkdownRenderer key={i} content={block.content} className={role === "user" ? "text-sm prose-invert" : ""} />;
case "file":
return <FileBlock key={i} name={block.name} mime={block.mime} content={block.content} />;
case "reply":