fix(webui): crossfade theme changes as one page (#6459)

* fix(webui): crossfade theme changes as one page

* test(webui): align selection highlight motion checks

Follow the shared CSS transition contract instead of obsolete Tailwind utilities. Verify normal geometry easing and reduced-motion theme paint in the browser without changing accepted theme behavior or relaxing CI gates.
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-25 23:54:06 +08:00
1 parent 4701218719
commit 83b6112843
20 files changed
+538 -67

No files matched your search

@@ -678,6 +678,7 @@ export function PaneWorkbench({
return (
<section
ref={setNavigationFrame}
data-theme-surface
aria-label={t("workbench.aria", { defaultValue: "Conversation workbench" })}
className={cn(
"thread-workspace relative flex h-full min-h-0 flex-col overflow-hidden bg-background",
@@ -693,9 +694,10 @@ export function PaneWorkbench({
/>
</header>
) : null}
<div className="workbench-body relative min-h-0 flex-1 bg-background">
<div className="workbench-body relative min-h-0 flex-1">
<div
ref={gridRef}
data-theme-surface
data-testid="pane-grid"
data-layout={effectiveLayout}
className={cn(
@@ -715,6 +717,7 @@ export function PaneWorkbench({
else paneRefs.current.delete(pane.key);
}}
aria-label={pane.title}
data-theme-surface
data-active={active ? "true" : "false"}
data-dragging={draggingPaneKey === pane.key ? "true" : undefined}
data-testid={`workbench-pane-${pane.key}`}
@@ -830,7 +833,7 @@ export function PaneWorkbench({
</div>
{chrome ? (
<footer className="workbench-composer-footer shrink-0 bg-background px-3 pb-[calc(0.5rem+env(safe-area-inset-bottom))] sm:px-4 sm:pb-[calc(0.75rem+env(safe-area-inset-bottom))]">
<footer className="workbench-composer-footer shrink-0 px-3 pb-[calc(0.5rem+env(safe-area-inset-bottom))] sm:px-4 sm:pb-[calc(0.75rem+env(safe-area-inset-bottom))]">
<div
ref={setComposerPortalTarget}
data-testid="workbench-composer-host"