From 14f14b75b0d046b795fce143dda361d6257409fc Mon Sep 17 00:00:00 2001 From: icarus Date: Wed, 24 Sep 2025 19:24:36 +0800 Subject: [PATCH] fix(home-tabs): correct conditional rendering of topic and settings tabs Ensure tabs are only shown when isTopicView is true and simplify the tab labels by removing conditional rendering --- src/renderer/src/pages/home/Tabs/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/pages/home/Tabs/index.tsx b/src/renderer/src/pages/home/Tabs/index.tsx index 33293f0ce1..7d5daec6e5 100644 --- a/src/renderer/src/pages/home/Tabs/index.tsx +++ b/src/renderer/src/pages/home/Tabs/index.tsx @@ -124,16 +124,14 @@ const HomeTabs: FC = ({ )} - {position === 'right' && topicPosition === 'right' && ( + {position === 'right' && topicPosition === 'right' && isTopicView && ( setTab('topic')}> - {isTopicView ? t('common.topics') : t('agent.session.label_other')} + {t('common.topics')} + + setTab('settings')}> + {t('settings.title')} - {shouldShowSettingsTab && ( - setTab('settings')}> - {t('settings.title')} - - )} )}