diff --git a/src/renderer/src/pages/home/Tabs/AssistantItem.tsx b/src/renderer/src/pages/home/Tabs/AssistantItem.tsx index da753c1a..62e39127 100644 --- a/src/renderer/src/pages/home/Tabs/AssistantItem.tsx +++ b/src/renderer/src/pages/home/Tabs/AssistantItem.tsx @@ -108,12 +108,13 @@ const AssistantItem: FC = ({ assistant, isActive, onSwitch, }, [clickAssistantToShowTopic, onSwitch, assistant, topicPosition]) const assistantName = assistant.name || t('chat.default.name') + const fullAssistantName = assistant.emoji ? `${assistant.emoji} ${assistantName}` : assistantName return ( - - {assistant.emoji ? `${assistant.emoji} ${assistantName}` : assistantName} + + {fullAssistantName} {isActive && ( EventEmitter.emit(EVENT_NAMES.SWITCH_TOPIC_SIDEBAR)}> diff --git a/src/renderer/src/pages/home/Tabs/TopicsTab.tsx b/src/renderer/src/pages/home/Tabs/TopicsTab.tsx index ef8c0750..2223b99e 100644 --- a/src/renderer/src/pages/home/Tabs/TopicsTab.tsx +++ b/src/renderer/src/pages/home/Tabs/TopicsTab.tsx @@ -293,16 +293,21 @@ const Topics: FC = ({ assistant: _assistant, activeTopic, setActiveTopic {(topic) => { const isActive = topic.id === activeTopic?.id + const topicName = topic.name.replace('`', '') + const topicPrompt = topic.prompt + const fullTopicPrompt = t('common.prompt') + ': ' + topicPrompt return ( onSwitchTopic(topic)} style={{ borderRadius }}> - {topic.name.replace('`', '')} - {topic.prompt && ( - - {t('common.prompt')}: {topic.prompt} + + {topicName} + + {topicPrompt && ( + + {fullTopicPrompt} )} {showTopicTime && (