mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix(MainTextBlock): adjust whiteSpace style for user role messages (#6501)
This commit is contained in:
parent
ef660b4222
commit
7a255c1b6d
@ -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>
|
||||
) : (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user