perf: 聊天页优化
This commit is contained in:
@@ -353,6 +353,7 @@
|
||||
line-height: 1.6;
|
||||
letter-spacing: 0.5px;
|
||||
text-align: justify;
|
||||
white-space: pre;
|
||||
pre {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
@@ -42,7 +42,7 @@ const Markdown = ({ source, isChatting }: { source: string; isChatting: boolean
|
||||
</Flex>
|
||||
<SyntaxHighlighter
|
||||
style={codeLight as any}
|
||||
language={match?.[1] || 'bash'}
|
||||
language={match?.[1]}
|
||||
PreTag="pre"
|
||||
{...props}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user