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

+5 -1
View File
@@ -155,6 +155,8 @@ export function Sidebar(props: SidebarProps) {
return (
<nav
data-theme-surface
data-theme-ink
ref={props.containActionMenus ? setMenuPortalContainer : undefined}
aria-label={t("sidebar.navigation")}
className={cn(
@@ -323,8 +325,10 @@ export function Sidebar(props: SidebarProps) {
onRequestUpdate={props.availableUpdate.onRequestUpdate} installationMethod={props.availableUpdate.installationMethod} />
)}
<div
data-theme-surface
className={cn(
"flex items-center justify-between gap-1 bg-sidebar/55 px-2.5 py-3 text-xs",
"flex items-center justify-between gap-1 px-2.5 py-3 text-xs",
props.hostChromeInset && "bg-sidebar/55",
collapsed && "w-14 flex-col px-0",
)}
>