aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/AppLayout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/layout/AppLayout.tsx')
-rw-r--r--src/components/layout/AppLayout.tsx11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/components/layout/AppLayout.tsx b/src/components/layout/AppLayout.tsx
index 86b4e787e..97795212a 100644
--- a/src/components/layout/AppLayout.tsx
+++ b/src/components/layout/AppLayout.tsx
@@ -14,7 +14,6 @@ import { Component as PublishDebugInfo } from '../../features/publishDebugInfo';
14import ErrorBoundary from '../util/ErrorBoundary'; 14import ErrorBoundary from '../util/ErrorBoundary';
15import { updateVersionParse } from '../../helpers/update-helpers'; 15import { updateVersionParse } from '../../helpers/update-helpers';
16 16
17// import globalMessages from '../../i18n/globalMessages';
18import { isMac, isWindows } from '../../environment'; 17import { isMac, isWindows } from '../../environment';
19import WorkspaceSwitchingIndicator from '../../features/workspaces/components/WorkspaceSwitchingIndicator'; 18import WorkspaceSwitchingIndicator from '../../features/workspaces/components/WorkspaceSwitchingIndicator';
20import { workspaceStore } from '../../features/workspaces'; 19import { workspaceStore } from '../../features/workspaces';
@@ -45,13 +44,11 @@ const messages = defineMessages({
45 }, 44 },
46}); 45});
47 46
48let transition = 'none'; 47const transition = window?.matchMedia('(prefers-reduced-motion: no-preference)')
48 ? 'transform 0.5s ease'
49 : 'none';
49 50
50if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { 51const styles = (theme: { workspaces: { drawer: { width: any } } }) => ({
51 transition = 'transform 0.5s ease';
52}
53
54const styles = theme => ({
55 appContent: { 52 appContent: {
56 // width: `calc(100% + ${theme.workspaces.drawer.width}px)`, 53 // width: `calc(100% + ${theme.workspaces.drawer.width}px)`,
57 width: '100%', 54 width: '100%',