mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
fix(MainTextBlock): update whiteSpace style for user messages to 'pre-wrap'
This commit is contained in:
parent
c723af67c0
commit
93e9baa421
@ -163,7 +163,7 @@ const MainTextBlock: React.FC<Props> = ({ block, citationBlockId, role, mentions
|
|||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
{role === 'user' && !renderInputMessageAsMarkdown ? (
|
{role === 'user' && !renderInputMessageAsMarkdown ? (
|
||||||
<p className="markdown" style={{ marginBottom: 5, whiteSpace: 'pre-line' }}>
|
<p className="markdown" style={{ marginBottom: 5, whiteSpace: 'pre-wrap' }}>
|
||||||
{block.content}
|
{block.content}
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user