fix: clean up Avatar removal JSX
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
This commit is contained in:
parent
c24d7c665f
commit
688cd4686c
@ -191,13 +191,12 @@ function ChatPage() {
|
|||||||
|
|
||||||
{messages.map(msg => (
|
{messages.map(msg => (
|
||||||
<div key={msg.id} style={{ display: 'flex', gap: 12, marginBottom: 20, flexDirection: msg.role === 'user' ? 'row-reverse' : 'row' }}>
|
<div key={msg.id} style={{ display: 'flex', gap: 12, marginBottom: 20, flexDirection: msg.role === 'user' ? 'row-reverse' : 'row' }}>
|
||||||
<div style={{ padding: '12px 16px', borderRadius: 12, lineHeight: 1.8, wordBreak: 'break-word', background: msg.role === 'user' ? token.colorPrimary : token.colorFillAlter, color: msg.role === 'user' ? '#fff' : token.colorText }}>
|
<div style={{ maxWidth: '75%', minWidth: 0, padding: '12px 16px', borderRadius: 12, lineHeight: 1.8, wordBreak: 'break-word', background: msg.role === 'user' ? token.colorPrimary : token.colorFillAlter, color: msg.role === 'user' ? '#fff' : token.colorText }}>
|
||||||
{msg.role === 'assistant'
|
{msg.role === 'assistant'
|
||||||
? (msg.content
|
? (msg.content
|
||||||
? <Markdown content={msg.content + (msg.streaming ? '▊' : '')} />
|
? <Markdown content={msg.content + (msg.streaming ? '▊' : '')} />
|
||||||
: <Text type="secondary" style={{ fontSize: 13 }}>思考中...</Text>)
|
: <Text type="secondary" style={{ fontSize: 13 }}>思考中...</Text>)
|
||||||
: msg.content}
|
: msg.content}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user