revert: transform -> marginLeft in DefaultLayout motion div (#11522)

This commit is contained in:
nitin
2025-04-11 02:03:12 +05:30
committed by GitHub
parent e6bb3d4d51
commit 0cccb80221

View File

@ -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,