fix(MainTextBlock): update whiteSpace style for user messages to 'pre-wrap'

This commit is contained in:
MyPrototypeWhat 2025-05-29 17:57:35 +08:00 committed by 亢奋猫
parent c5fc7df258
commit ce941b6532

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, whiteSpace: 'pre-line' }}>
<p className="markdown" style={{ marginBottom: 5, whiteSpace: 'pre-wrap' }}>
{block.content}
</p>
) : (