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,7 +191,7 @@ function ChatPage() {
|
||||
|
||||
{messages.map(msg => (
|
||||
<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.content
|
||||
? <Markdown content={msg.content + (msg.streaming ? '▊' : '')} />
|
||||
@ -199,7 +199,6 @@ function ChatPage() {
|
||||
: msg.content}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<div ref={messagesEndRef} />
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user