fix: show More menu if current app is not agent-chat

This commit is contained in:
NFish 2025-05-07 14:41:19 +08:00
parent 17d6dd6193
commit 7bea68fa84

View File

@ -284,7 +284,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => {
<RiFileDownloadLine className='h-3.5 w-3.5 text-components-button-secondary-text' /> <RiFileDownloadLine className='h-3.5 w-3.5 text-components-button-secondary-text' />
<span className='system-xs-medium text-components-button-secondary-text'>{t('app.export')}</span> <span className='system-xs-medium text-components-button-secondary-text'>{t('app.export')}</span>
</Button> </Button>
<PortalToFollowElem {appDetail.mode !== 'agent-chat' && <PortalToFollowElem
open={showMore} open={showMore}
onOpenChange={setShowMore} onOpenChange={setShowMore}
placement='bottom-end' placement='bottom-end'
@ -327,7 +327,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => {
} }
</div> </div>
</PortalToFollowElemContent> </PortalToFollowElemContent>
</PortalToFollowElem> </PortalToFollowElem>}
</div> </div>
</div> </div>
<div className='flex flex-1'> <div className='flex flex-1'>