revert: transform -> marginLeft in DefaultLayout motion div (#11522)
This commit is contained in:
@ -80,16 +80,14 @@ export const DefaultLayout = () => {
|
|||||||
<AppErrorBoundary FallbackComponent={AppFullScreenErrorFallback}>
|
<AppErrorBoundary FallbackComponent={AppFullScreenErrorFallback}>
|
||||||
<StyledPageContainer
|
<StyledPageContainer
|
||||||
animate={{
|
animate={{
|
||||||
transform:
|
marginLeft:
|
||||||
isSettingsPage && !isMobile && !useShowFullScreen
|
isSettingsPage && !isMobile && !useShowFullScreen
|
||||||
? `translateX(${
|
? (windowsWidth -
|
||||||
(windowsWidth -
|
(OBJECT_SETTINGS_WIDTH +
|
||||||
(OBJECT_SETTINGS_WIDTH +
|
NAV_DRAWER_WIDTHS.menu.desktop.expanded +
|
||||||
NAV_DRAWER_WIDTHS.menu.desktop.expanded +
|
76)) /
|
||||||
76)) /
|
2
|
||||||
2
|
: 0,
|
||||||
}px)`
|
|
||||||
: 'translateX(0)',
|
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: theme.animation.duration.normal,
|
duration: theme.animation.duration.normal,
|
||||||
|
|||||||
Reference in New Issue
Block a user