From ffdea36b189afaf596c9da82b91ccf1c8f2b001a Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 19 Dec 2024 10:22:58 +0800 Subject: [PATCH] fix: empty tooltip on attachment icon, also fix z-index (#4290) --- .../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 da98e41e3..9a939aa44 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 } @@ -237,7 +237,8 @@ const ChatInput = () => {
  • {
  • { - fileInputRef.current?.click() - setShowAttacmentMenus(false) + if (isModelSupportRagAndTools) { + fileInputRef.current?.click() + setShowAttacmentMenus(false) + } }} >