Fix: hide view chat setting button when no inputs form (#19263)

This commit is contained in:
KVOJJJin 2025-05-06 13:15:23 +08:00 • committed by GitHub
commit b78846078c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -27,6 +27,7 @@ const HeaderInMobile = () => {
handleDeleteConversation,
handleRenameConversation,
conversationRenaming,
inputsForms,
} = useChatWithHistoryContext()
const { t } = useTranslation()
const isPin = pinnedConversationList.some(item => item.id === currentConversationId)
@ -99,6 +100,7 @@ const HeaderInMobile = () => {
<MobileOperationDropdown
handleResetChat={handleNewConversation}
handleViewChatSettings={() => setShowChatSettings(true)}
hideViewChatSettings={inputsForms.length < 1}
/>
</div>
{showSidebar && (