From 8e01bb40fe2ae1906e900cb0ce92cada0af8144f Mon Sep 17 00:00:00 2001 From: Davide Delbianco Date: Tue, 14 Oct 2025 04:15:06 +0200 Subject: [PATCH] fix: Do not show the toggle button for chat input when all input hidden (#26826) Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> --- .../components/base/chat/embedded-chatbot/header/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/chat/embedded-chatbot/header/index.tsx b/web/app/components/base/chat/embedded-chatbot/header/index.tsx index 904506f2bc..48f6de5725 100644 --- a/web/app/components/base/chat/embedded-chatbot/header/index.tsx +++ b/web/app/components/base/chat/embedded-chatbot/header/index.tsx @@ -36,6 +36,7 @@ const Header: FC = ({ appData, currentConversationId, inputsForms, + allInputsHidden, } = useEmbeddedChatbotContext() const isClient = typeof window !== 'undefined' @@ -124,7 +125,7 @@ const Header: FC = ({ )} - {currentConversationId && inputsForms.length > 0 && ( + {currentConversationId && inputsForms.length > 0 && !allInputsHidden && ( )} @@ -171,7 +172,7 @@ const Header: FC = ({ )} - {currentConversationId && inputsForms.length > 0 && ( + {currentConversationId && inputsForms.length > 0 && !allInputsHidden && ( )}