fix(MainTextBlock): adjust whiteSpace style for user role messages (#6501)

This commit is contained in:
MyPrototypeWhat 2025-05-27 12:10:09 +08:00 committed by GitHub
parent c77d627077
commit 2a996e2c9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,7 @@ const MainTextBlock: React.FC<Props> = ({ block, citationBlockId, role, mentions
</Flex>
)}
{role === 'user' && !renderInputMessageAsMarkdown ? (
<p className="markdown" style={{ marginBottom: 5 }}>
<p className="markdown" style={{ marginBottom: 5, whiteSpace: 'pre-line' }}>
{block.content}
</p>
) : (