mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 10:18:42 +00:00
feat: add prose-invert class to user-rendered markdown content in MarkdownRenderer.
This commit is contained in:
1 parent
6c7e3251e2
commit
b35dc56aff
1 file changed
+2
-2
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user