From 5888791dc3ae9f8548fb61755d1e8a32679e4cf5 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sat, 7 Nov 2026 23:00:34 +0800 Subject: [PATCH] style(webui): remove decorative ambient glow --- webui/COMPONENTS.md | 2 +- webui/src/App.tsx | 2 +- .../settings/overview/AboutSettingsView.tsx | 2 +- webui/src/components/thread/ThreadShell.tsx | 2 +- webui/src/globals.css | 28 ------------------- 5 files changed, 4 insertions(+), 32 deletions(-) diff --git a/webui/COMPONENTS.md b/webui/COMPONENTS.md index e29484b1b..5947469ed 100644 --- a/webui/COMPONENTS.md +++ b/webui/COMPONENTS.md @@ -58,7 +58,7 @@ Prompt navigation retains at most three server pages. Static ready Blocks appear ## Theme artwork and surface motion -The application theme remains the single owner for paired day/night artwork. The Sidebar keeps the original daytime mark and uses a sleeping-cap variant in dark mode; the Star invitation pairs matching day/night illustrations. Both layers reserve the same geometry. `.theme-art` blends opacity for System changes and browsers without native snapshots; a native root View Transition owns the whole-frame fade instead. Reduced motion switches artwork directly. Warm/cool decoration is limited to entry and empty states, not conversation reading surfaces. +The application theme remains the single owner for paired day/night artwork. The Sidebar keeps the original daytime mark and uses a sleeping-cap variant in dark mode; the Star invitation pairs matching day/night illustrations. Both layers reserve the same geometry. `.theme-art` blends opacity for System changes and browsers without native snapshots; a native root View Transition owns the whole-frame fade instead. Reduced motion switches artwork directly. Entry and conversation surfaces keep their normal theme colors without decorative ambient glow. Dropdowns and popovers use Radix's resolved transform origin and side, so motion stays attached to the trigger after collision handling. Radix owns their presence and focus. `SidebarPanel` retains its content until the slot and surface finish their actual exit animations, ignores descendant activity, and cancels teardown when reopened. Closing content is inert and hidden from assistive navigation; callers still own focus restoration. Disclosures keep their existing in-flow height transition and draft retention. diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 477c9dacb..aa9d6bfb0 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -407,7 +407,7 @@ function AuthForm({ aria-labelledby="webui-auth-title" className="w-full max-w-xs" > -
+
-
+

nanobot

diff --git a/webui/src/components/thread/ThreadShell.tsx b/webui/src/components/thread/ThreadShell.tsx index 7cae859c0..1ca10d217 100644 --- a/webui/src/components/thread/ThreadShell.tsx +++ b/webui/src/components/thread/ThreadShell.tsx @@ -1471,7 +1471,7 @@ export function ThreadShell({ const emptyState = initialHistoryLoading ? ( ) : ( -
+
); diff --git a/webui/src/globals.css b/webui/src/globals.css index 6df19bb63..a025d508d 100644 --- a/webui/src/globals.css +++ b/webui/src/globals.css @@ -144,7 +144,6 @@ --sidebar-border: 40 8% 90.5%; --settings-canvas: var(--background); --settings-surface: 60 6% 96.7%; - --brand-ambient: 36 96% 78%; --automation-view-track: hsl(0 0% 91%); --scrollbar-thumb: hsl(var(--muted-foreground) / 0.26); --scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.42); @@ -217,39 +216,12 @@ --sidebar-border: var(--border); --settings-canvas: var(--background); --settings-surface: var(--card); - --brand-ambient: 219 58% 58%; --automation-view-track: hsl(var(--muted) / 0.65); --scrollbar-thumb: hsl(var(--muted-foreground) / 0.28); --scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.44); } } -/* Decoration belongs to entry/empty states, never to conversation reading surfaces. */ -.brand-atmosphere { - position: relative; - isolation: isolate; -} - -.brand-atmosphere::before { - content: ""; - position: absolute; - z-index: -1; - pointer-events: none; - top: -72px; - left: 50%; - width: min(420px, 100%); - height: 240px; - transform: translateX(-50%); - background: radial-gradient(ellipse at center, hsl(var(--brand-ambient) / 0.22), transparent 68%); -} - -.brand-atmosphere-welcome::before { - top: -100px; - width: min(620px, 100%); - height: 250px; - opacity: 0.65; -} - @layer base { * { @apply border-border;