Skip to content

The open alternative to Salesforce, designed for AI.

Fix side panel open/close animation glitches in the page header and panel content (#22598)

Raphaël Bosic55bfab11ecc
diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx
index 4169c65e968..e75f9a65026 100644
--- a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx
@@ -73,7 +73,6 @@ export const PinnedCommandMenuItemButtons = () => {
{pinnedInlineCommandMenuItems.map((item) => (
<StyledCommandMenuItemContainer
key={item.id}
- layout
initial={{ width: 0, opacity: 0 }}
animate={{ width: 'unset', opacity: 1 }}
exit={{ width: 0, opacity: 0 }}
diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
index e98c3e9e086..2b8ef964fe2 100644
--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
@@ -44,7 +44,7 @@ const StyledSidePanel = styled.aside`
height: 100%;
overflow: hidden;
position: relative;
- width: 100%;
+ width: var(${SIDE_PANEL_WIDTH_VAR});
`;
const StyledModalContainer = styled.div`