From 84c77269404531070ec6f32ed1ab7c273e3ea9be Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 31 Aug 2025 21:27:58 +0800 Subject: [PATCH] feat(ui): implement pills-style AppSwitcher with consistent button widths Replace segmented control with pills-style switcher for better visual consistency. --- src/App.tsx | 38 +++----------------- src/components/AppSwitcher.css | 66 ++++++++++++++++++++++++++++++++++ src/components/AppSwitcher.tsx | 36 +++++++++++++++++++ 3 files changed, 107 insertions(+), 33 deletions(-) create mode 100644 src/components/AppSwitcher.css create mode 100644 src/components/AppSwitcher.tsx diff --git a/src/App.tsx b/src/App.tsx index d4a0c9e..5a39430 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,6 +5,7 @@ import ProviderList from "./components/ProviderList"; import AddProviderModal from "./components/AddProviderModal"; import EditProviderModal from "./components/EditProviderModal"; import { ConfirmDialog } from "./components/ConfirmDialog"; +import { AppSwitcher } from "./components/AppSwitcher"; import "./App.css"; function App() { @@ -182,39 +183,10 @@ function App() {

{activeApp === "claude" ? "Claude Code" : "Codex"} 供应商切换器

-
- - - -
+
+
+ +
+ ); +} \ No newline at end of file