Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix: reset button in embedded chatbot (#6611)
KVOJJJin3c78fdec1cc4
diff --git a/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx b/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsxindex 0d59331819c..68646a17dbe 100644--- a/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx+++ b/web/app/components/base/chat/embedded-chatbot/chat-wrapper.tsx@@ -111,7 +111,7 @@ const ChatWrapper = () => {)}- return <div className='mb-6' />+ return null}, [currentConversationId, inputsForms, isMobile])return (diff --git a/web/app/components/base/chat/embedded-chatbot/index.tsx b/web/app/components/base/chat/embedded-chatbot/index.tsxindex 02063a3d1e4..6d144f3f3bd 100644--- a/web/app/components/base/chat/embedded-chatbot/index.tsx+++ b/web/app/components/base/chat/embedded-chatbot/index.tsx@@ -3,6 +3,8 @@ import {useState,} from 'react'import { useAsyncEffect } from 'ahooks'+import { useTranslation } from 'react-i18next'+import { RiLoopLeftLine } from '@remixicon/react'import {EmbeddedChatbotContext,useEmbeddedChatbotContext,@@ -19,8 +21,10 @@ import LogoHeader from '@/app/components/base/logo/logo-embeded-chat-header'import Header from '@/app/components/base/chat/embedded-chatbot/header'import ConfigPanel from '@/app/components/base/chat/embedded-chatbot/config-panel'import ChatWrapper from '@/app/components/base/chat/embedded-chatbot/chat-wrapper'+import Tooltip from '@/app/components/base/tooltip'const Chatbot = () => {+ const { t } = useTranslation()const {isMobile,appInfoError,@@ -80,7 +84,22 @@ const Chatbot = () => {<Loading type='app' />)}{chatReady && !appChatListDataLoading && (- <ChatWrapper />+ <div className='relative h-full pt-8 mx-auto w-full max-w-[720px]'>+ {!isMobile && (+ <div className='absolute top-2.5 right-3 z-20'>+ <Tooltip+ selector={'embed-scene-restart-button'}+ htmlContent={t('share.chat.resetChat')}+ position='top'+ >+ <div className='p-1.5 bg-white border-[0.5px] border-gray-100 rounded-lg shadow-md cursor-pointer' onClick={handleNewConversation}>+ <RiLoopLeftLine className="h-4 w-4 text-gray-500"/>+ </div>+ </Tooltip>+ </div>+ )}+ <ChatWrapper />+ </div>)}</div></div>