diff options
Diffstat (limited to 'src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx')
-rw-r--r-- | src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx index c9af22c96..e1cc0f785 100644 --- a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx +++ b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx | |||
@@ -14,10 +14,11 @@ const messages = defineMessages({ | |||
14 | }, | 14 | }, |
15 | }); | 15 | }); |
16 | 16 | ||
17 | const wrapperTransition = | 17 | const wrapperTransition = window?.matchMedia( |
18 | window && window.matchMedia('(prefers-reduced-motion: no-preference)') | 18 | '(prefers-reduced-motion: no-preference)', |
19 | ? 'width 0.5s ease' | 19 | ) |
20 | : 'none'; | 20 | ? 'width 0.5s ease' |
21 | : 'none'; | ||
21 | 22 | ||
22 | const styles = theme => ({ | 23 | const styles = theme => ({ |
23 | wrapper: { | 24 | wrapper: { |