mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
refactor(TopicsTab): Use onContextMenu instead of onMouseEnter (#5459)
refactor(TopicsTab): change mouse event from onMouseEnter to onContextMenu for setting target topic
This commit is contained in:
parent
a488489092
commit
61a11371c8
@ -391,7 +391,7 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
|
||||
const fullTopicPrompt = t('common.prompt') + ': ' + topicPrompt
|
||||
return (
|
||||
<TopicListItem
|
||||
onMouseEnter={() => setTargetTopic(topic)}
|
||||
onContextMenu={() => setTargetTopic(topic)}
|
||||
className={isActive ? 'active' : ''}
|
||||
onClick={() => onSwitchTopic(topic)}
|
||||
style={{ borderRadius }}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user