From a3c8c50212057e9298592ce7ab0742786691f3c8 Mon Sep 17 00:00:00 2001 From: ZyGuo Date: Wed, 17 Jun 2026 13:49:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend-web/src/pages/IframeChatPage.tsx | 66 +++++++++++------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/frontend-web/src/pages/IframeChatPage.tsx b/frontend-web/src/pages/IframeChatPage.tsx index f9983498..21422426 100644 --- a/frontend-web/src/pages/IframeChatPage.tsx +++ b/frontend-web/src/pages/IframeChatPage.tsx @@ -3,7 +3,6 @@ import { BookMarkedIcon, BrainCircuitIcon, - CheckIcon, FileTextIcon, GraduationCapIcon, } from "lucide-react"; @@ -23,7 +22,9 @@ import { } from "@/components/workspace/messages"; import { ThreadContext } from "@/components/workspace/messages/context"; import { TodoList } from "@/components/workspace/todo-list"; +import { Tooltip } from "@/components/workspace/tooltip"; import { Button } from "@/components/ui/button"; +import { TooltipProvider } from "@/components/ui/tooltip"; import { useAgentSelector } from "@/core/agents"; import { getAccessToken } from "@/core/auth"; import { useI18n } from "@/core/i18n/hooks"; @@ -369,7 +370,7 @@ export default function IframeChatPage() { }, [handleInterrupt, handleSubmit]); const isLandingState = isNewThread && !hasStartedConversation; - const bottomBarHeightClass = "pb-28"; + const bottomBarHeightClass = "pb-24"; const modeButtons = [ { key: "writing", @@ -377,8 +378,7 @@ export default function IframeChatPage() { icon: FileTextIcon, active: !!settings.context.writing_mode, onClick: toggleWritingMode, - activeClassName: - "border-amber-300 bg-amber-50 text-amber-700 hover:bg-amber-100", + activeClassName: "text-amber-600 hover:text-amber-700", }, { key: "memory", @@ -386,8 +386,7 @@ export default function IframeChatPage() { icon: BrainCircuitIcon, active: settings.context.memory_injection_enabled ?? true, onClick: toggleMemoryInjection, - activeClassName: - "border-blue-300 bg-blue-50 text-blue-700 hover:bg-blue-100", + activeClassName: "text-blue-600 hover:text-blue-700", }, { key: "references", @@ -396,8 +395,7 @@ export default function IframeChatPage() { active: ragModeEnabled, onClick: toggleRagMode, disabled: ragModeLocked, - activeClassName: - "border-emerald-300 bg-emerald-50 text-emerald-700 hover:bg-emerald-100", + activeClassName: "text-emerald-600 hover:text-emerald-700", }, { key: "pro", @@ -405,8 +403,7 @@ export default function IframeChatPage() { icon: GraduationCapIcon, active: proModeEnabled, onClick: toggleProMode, - activeClassName: - "border-violet-300 bg-violet-50 text-violet-700 hover:bg-violet-100", + activeClassName: "text-violet-600 hover:text-violet-700", }, ] as const; @@ -496,29 +493,32 @@ export default function IframeChatPage() {
-
- {modeButtons.map((button) => { - const Icon = button.icon; - return ( - - ); - })} -
+ +
+ {modeButtons.map((button) => { + const Icon = button.icon; + return ( + + + + ); + })} +
+