fix(ui): honor the application animation setting globally

This commit is contained in:
Sucukdeluxe
2026-08-15 16:03:59 +02:00
parent f911d4c444
commit 760ed847fc
10 changed files with 57 additions and 119 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ function getServerShellMode(): ResponsiveShellMode {
export interface AppShellProps {
activeView: MainView;
animationsEnabled?: boolean;
onViewChange: (view: MainView) => void;
sidebar: ReactNode;
sidebarStatus: ReactNode;
@@ -43,6 +44,7 @@ export interface AppShellProps {
export function AppShell({
activeView,
animationsEnabled = true,
onViewChange,
sidebar,
sidebarStatus,
@@ -74,7 +76,7 @@ export function AppShell({
return (
<div
className={`md-shell is-${responsiveMode}${hasSidebar ? " has-sidebar" : ""}${hasSidebar && effectiveSidebarCollapsed ? " has-collapsed-sidebar" : ""}`}
className={`md-shell is-${responsiveMode}${animationsEnabled ? " is-runtime-motion-enabled" : " is-runtime-motion-disabled"}${hasSidebar ? " has-sidebar" : ""}${hasSidebar && effectiveSidebarCollapsed ? " has-collapsed-sidebar" : ""}`}
data-responsive-mode={responsiveMode}
>
<AppHeader activeView={activeView} actions={headerActions} onViewChange={onViewChange} />