b5ec6df62f
https://github.com/user-attachments/assets/c9ff288d-0e68-4877-af6b-8685a6bbeeaf <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Removes legacy layout and refactors `CommandMenuPageLayout` to use width-based animation with shared constants and close-animation cleanup. > > - **UI/Command Menu**: > - **Refactor `CommandMenuPageLayout`**: > - Switch to width/margin animation on `StyledSidePanelWrapper`; remove side panel `x` translate animation. > - Use shared `COMMAND_MENU_SIDE_PANEL_WIDTH` constant. > - Add close-state handling via `isCommandMenuClosingState` and `useCommandMenuCloseAnimationCompleteCleanup` on animation completion. > - Simplify props: remove `isSidePanelOpen`; rely on `isCommandMenuOpenedState` and internal `shouldRenderContent`. > - **Cleanup**: > - Remove obsolete `CommandMenuLayout.tsx`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d6cb01114c75b8694fbb746ea4ef31c045d7d16a. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>