From 8123942ec13c0604adb4e0d80bfde6e7a4b564e6 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Fri, 17 Oct 2025 18:48:47 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9AText=20color=20in=20Floating=20Widg?= =?UTF-8?q?et=20(Intercom-style)=20#10624=20(#10639)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? Fix:Text color in Floating Widget (Intercom-style) #10624 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/floating-chat-widget.tsx | 72 ++++++++++++++------- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git a/web/src/components/floating-chat-widget.tsx b/web/src/components/floating-chat-widget.tsx index cbb83cbde..9f7d8cfa5 100644 --- a/web/src/components/floating-chat-widget.tsx +++ b/web/src/components/floating-chat-widget.tsx @@ -1,11 +1,11 @@ +import PdfDrawer from '@/components/pdf-drawer'; +import { useClickDrawer } from '@/components/pdf-drawer/hooks'; import { MessageType, SharedFrom } from '@/constants/chat'; import { useFetchNextConversationSSE } from '@/hooks/chat-hooks'; import { useFetchFlowSSE } from '@/hooks/flow-hooks'; import { useFetchExternalChatInfo } from '@/hooks/use-chat-request'; -import { useClickDrawer } from '@/components/pdf-drawer/hooks'; import i18n from '@/locales/config'; import { MessageCircle, Minimize2, Send, X } from 'lucide-react'; -import PdfDrawer from '@/components/pdf-drawer'; import React, { useCallback, useEffect, @@ -234,7 +234,7 @@ const FloatingChatWidget = () => { const syntheticEvent = { target: { value: inputValue }, currentTarget: { value: inputValue }, - preventDefault: () => { }, + preventDefault: () => {}, } as any; handleInputChange(syntheticEvent); @@ -311,6 +311,7 @@ const FloatingChatWidget = () => { className={`fixed bottom-6 right-6 z-50 transition-opacity duration-300 ${isLoaded ? 'opacity-100' : 'opacity-0'}`} >