fix: 清除上下文按钮容易误点 #426
This commit is contained in:
parent
c0f192c6f2
commit
f817d9136b
@ -136,9 +136,11 @@ const MessageItem: FC<Props> = ({
|
||||
|
||||
if (message.type === 'clear') {
|
||||
return (
|
||||
<NewContextMessage onClick={() => EventEmitter.emit(EVENT_NAMES.NEW_CONTEXT)}>
|
||||
<Divider dashed style={{ padding: '0 20px' }} plain>
|
||||
{t('chat.message.new.context')}
|
||||
</Divider>
|
||||
</NewContextMessage>
|
||||
)
|
||||
}
|
||||
|
||||
@ -228,4 +230,8 @@ const MessageFooter = styled.div`
|
||||
gap: 20px;
|
||||
`
|
||||
|
||||
const NewContextMessage = styled.div`
|
||||
cursor: pointer;
|
||||
`
|
||||
|
||||
export default memo(MessageItem)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user