mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 11:49:02 +08:00
fix(MainTextBlock): adjust whiteSpace style for user role messages (#6501)
This commit is contained in:
parent
c77d627077
commit
2a996e2c9a
@ -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 }}>
|
<p className="markdown" style={{ marginBottom: 5, whiteSpace: 'pre-line' }}>
|
||||||
{block.content}
|
{block.content}
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user