From 96abb4d2c42502cc4e0efe5df48eb8d3cb9d1824 Mon Sep 17 00:00:00 2001 From: chengyongru <61816729+chengyongru@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:33:58 +0800 Subject: [PATCH] style(webui): clarify surface hierarchy (#5029) --- webui/src/App.tsx | 3 +- webui/src/components/ChatList.tsx | 2 +- webui/src/components/Sidebar.tsx | 5 +-- .../src/components/settings/SettingsView.tsx | 9 ++-- webui/src/components/thread/PromptRail.tsx | 4 +- .../src/components/thread/ThreadComposer.tsx | 6 +-- .../src/components/thread/ThreadViewport.tsx | 27 +++++++++++- .../components/thread/WorkspaceControls.tsx | 4 +- webui/src/globals.css | 43 ++++++++----------- webui/src/tests/thread-composer.test.tsx | 2 +- 10 files changed, 58 insertions(+), 47 deletions(-) diff --git a/webui/src/App.tsx b/webui/src/App.tsx index c051d2ed..bb282325 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -1936,7 +1936,7 @@ function Shell({ "absolute inset-y-0 left-0 h-full w-full overflow-hidden", showHostChrome ? "host-sidebar-glass" - : "bg-sidebar shadow-inner-right", + : "bg-sidebar", )} >
diff --git a/webui/src/components/Sidebar.tsx b/webui/src/components/Sidebar.tsx index 66a8bd41..65bc5128 100644 --- a/webui/src/components/Sidebar.tsx +++ b/webui/src/components/Sidebar.tsx @@ -14,7 +14,6 @@ import { useTranslation } from "react-i18next"; import { ChatList } from "@/components/ChatList"; import { ConnectionBadge } from "@/components/ConnectionBadge"; import { Button } from "@/components/ui/button"; -import { Separator } from "@/components/ui/separator"; import type { ChatSummary, SidebarViewState, @@ -90,7 +89,6 @@ export function Sidebar(props: SidebarProps) { className={cn( "flex h-full w-full min-w-0 flex-col text-sidebar-foreground", props.hostChromeInset ? "bg-transparent" : "bg-sidebar", - !props.hostChromeInset && "border-r border-sidebar-border/60", )} >
)}
-
diff --git a/webui/src/components/settings/SettingsView.tsx b/webui/src/components/settings/SettingsView.tsx index 634f6fa7..dd32acef 100644 --- a/webui/src/components/settings/SettingsView.tsx +++ b/webui/src/components/settings/SettingsView.tsx @@ -1899,10 +1899,7 @@ export function SettingsView({ return (
{showSidebar ? ( @@ -2058,7 +2055,7 @@ function SettingsSidebar({ return (