Skip to content

The open alternative to Salesforce, designed for AI.

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

nitin0cccb8022166
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
index 571501de0e9..72b57946fe2 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/DefaultLayout.tsx
@@ -80,16 +80,14 @@ export const DefaultLayout = () => {
<AppErrorBoundary FallbackComponent={AppFullScreenErrorFallback}>
<StyledPageContainer
animate={{
- transform:
+ marginLeft:
isSettingsPage && !isMobile && !useShowFullScreen
- ? `translateX(${
- (windowsWidth -
- (OBJECT_SETTINGS_WIDTH +
- NAV_DRAWER_WIDTHS.menu.desktop.expanded +
- 76)) /
- 2
- }px)`
- : 'translateX(0)',
+ ? (windowsWidth -
+ (OBJECT_SETTINGS_WIDTH +
+ NAV_DRAWER_WIDTHS.menu.desktop.expanded +
+ 76)) /
+ 2
+ : 0,
}}
transition={{
duration: theme.animation.duration.normal,