fix: clean up Avatar removal JSX
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s

This commit is contained in:
WangDL 2026-05-22 16:25:55 +08:00
parent c24d7c665f
commit 688cd4686c

View File

@ -191,7 +191,7 @@ 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 ? '▊' : '')} />
@ -199,7 +199,6 @@ function ChatPage() {
: msg.content} : msg.content}
</div> </div>
</div> </div>
</div>
))} ))}
<div ref={messagesEndRef} /> <div ref={messagesEndRef} />
</div> </div>