fix: 用户消息不显示名字仅保留头像
parent
e6116c1c80
commit
efd0ea5853
|
|
@ -128,20 +128,6 @@ export default function MessageItem(props: {
|
||||||
) : (
|
) : (
|
||||||
<div style={{ display: 'flex', gap: 12, alignItems: 'flex-start', justifyContent: 'flex-end' }}>
|
<div style={{ display: 'flex', gap: 12, alignItems: 'flex-start', justifyContent: 'flex-end' }}>
|
||||||
<div style={{ flex: 1, minWidth: 0, maxWidth: '78%', display: 'flex', flexDirection: 'column', alignItems: 'flex-end' }}>
|
<div style={{ flex: 1, minWidth: 0, maxWidth: '78%', display: 'flex', flexDirection: 'column', alignItems: 'flex-end' }}>
|
||||||
<div style={{
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
gap: 8,
|
|
||||||
marginBottom: 6
|
|
||||||
}}>
|
|
||||||
<span style={{
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: 400,
|
|
||||||
color: 'var(--color-text-secondary)'
|
|
||||||
}}>
|
|
||||||
我
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div className={`bubble ${bubbleRole}`}>
|
<div className={`bubble ${bubbleRole}`}>
|
||||||
{message.content.includes(' ? (
|
{message.content.includes(' ? (
|
||||||
<Markdown>{message.content}</Markdown>
|
<Markdown>{message.content}</Markdown>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue