mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: update MainTextBlock to use a class for markdown styling
- Changed the paragraph element in MainTextBlock to include a "markdown" class for improved styling consistency.
This commit is contained in:
parent
d7847f1efa
commit
6ff9752e25
@ -163,7 +163,9 @@ const MainTextBlock: React.FC<Props> = ({ block, citationBlockId, role, mentions
|
||||
</Flex>
|
||||
)}
|
||||
{role === 'user' && !renderInputMessageAsMarkdown ? (
|
||||
<p style={{ marginBottom: 5, whiteSpace: 'pre-wrap' }}>{block.content}</p>
|
||||
<p className="markdown" style={{ marginBottom: 5 }}>
|
||||
{block.content}
|
||||
</p>
|
||||
) : (
|
||||
<Markdown block={{ ...block, content: ignoreToolUse }} />
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user