From ce35cc9fd6e0034f69c27b4f3996d35bd58bf219 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 18 Dec 2024 15:12:11 +0700 Subject: [PATCH] fix: empty tooltip on attachment icon, also fix z-index --- .../Hub/ModelList/ModelHeader/index.tsx | 1 - .../ThreadCenterPanel/ChatInput/index.tsx | 21 ++++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/web/screens/Hub/ModelList/ModelHeader/index.tsx b/web/screens/Hub/ModelList/ModelHeader/index.tsx index da98e41e3d..9a939aa445 100644 --- a/web/screens/Hub/ModelList/ModelHeader/index.tsx +++ b/web/screens/Hub/ModelList/ModelHeader/index.tsx @@ -71,7 +71,6 @@ const ModelItemHeader = ({ model, onClick, open }: Props) => { let downloadButton = ( } disabled={ - isModelSupportRagAndTools && + !isModelSupportRagAndTools && activeAssistant?.tools && activeAssistant?.tools[0]?.enabled } @@ -231,7 +231,8 @@ const ChatInput = () => {
  • {
  • { - fileInputRef.current?.click() - setShowAttacmentMenus(false) + if (isModelSupportRagAndTools) { + fileInputRef.current?.click() + setShowAttacmentMenus(false) + } }} >