From 15c6e3aec84367ecadc479826ce85e16aa68c36d Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 25 Nov 2025 23:36:48 +0800 Subject: [PATCH] refactor(ui): improve header toolbar layout and transitions - Reorder toolbar buttons to keep Prompts and MCP icons aligned right (consistent position between Claude and Codex apps) - Add smooth fade-in/out transition for Skills button with opacity, width, scale, and padding animations - Hide Agents button temporarily (feature in development) - Remove two divider lines for cleaner appearance --- src/App.tsx | 63 ++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f5590275..97a01e40 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,7 +6,7 @@ import { Plus, Settings, ArrowLeft, - Bot, + // Bot, // TODO: Agents 功能开发中,暂时不需要 Book, Wrench, Server, @@ -24,6 +24,7 @@ import { import { checkAllEnvConflicts, checkEnvConflicts } from "@/lib/api/env"; import { useProviderActions } from "@/hooks/useProviderActions"; import { extractErrorMessage } from "@/utils/errorUtils"; +import { cn } from "@/lib/utils"; import { AppSwitcher } from "@/components/AppSwitcher"; import { ProviderList } from "@/components/providers/ProviderList"; import { AddProviderDialog } from "@/components/providers/AddProviderDialog"; @@ -404,7 +405,6 @@ function App() { > CC Switch -
- {isClaudeApp && ( - - )} - - {isClaudeApp && ( + {/* TODO: Agents 功能开发中,暂时隐藏入口 */} + {/* {isClaudeApp && ( - )} + )} */} + +