mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +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
|
const fullTopicPrompt = t('common.prompt') + ': ' + topicPrompt
|
||||||
return (
|
return (
|
||||||
<TopicListItem
|
<TopicListItem
|
||||||
onMouseEnter={() => setTargetTopic(topic)}
|
onContextMenu={() => setTargetTopic(topic)}
|
||||||
className={isActive ? 'active' : ''}
|
className={isActive ? 'active' : ''}
|
||||||
onClick={() => onSwitchTopic(topic)}
|
onClick={() => onSwitchTopic(topic)}
|
||||||
style={{ borderRadius }}>
|
style={{ borderRadius }}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user