update(MessageBox): parsed markdown message render style fix

This commit is contained in:
WanQuanXie 2024-05-28 12:45:19 +08:00
parent 6a2f4b8ebf
commit 5fe08b5ec8
1 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,12 @@ const MessageBox = ({
Answer Answer
</h3> </h3>
</div> </div>
<Markdown className="prose dark:prose-invert prose-strong:text-black dark:prose-strong:text-white prose-code:text-black dark:prose-code:text-white max-w-none break-words prose-invert prose-p:leading-relaxed prose-pre:p-0 text-black dark:text-white text-sm md:text-base font-medium"> <Markdown
className={cn(
'prose dark:prose-invert prose-p:leading-relaxed prose-pre:p-0',
'max-w-none break-words text-black dark:text-white text-sm md:text-base font-medium',
)}
>
{parsedMessage} {parsedMessage}
</Markdown> </Markdown>
{loading && isLast ? null : ( {loading && isLast ? null : (