Closes twentyhq/core-team-issues#53 - Removes command menu top bar text input when the user is not on root page - Fixes bug when resetting command menu context - Added animations on command menu open and close - Refactored workflow visualizer code to remove unnecessary rerenders and props drilling https://github.com/user-attachments/assets/1da3adb8-220b-407b-9279-30354d3100d3
26 lines
450 B
TypeScript
26 lines
450 B
TypeScript
import { THEME_COMMON } from 'twenty-ui';
|
|
|
|
export const COMMAND_MENU_ANIMATION_VARIANTS = {
|
|
fullScreen: {
|
|
x: '0%',
|
|
width: '100%',
|
|
height: '100%',
|
|
bottom: '0',
|
|
top: '0',
|
|
},
|
|
normal: {
|
|
x: '0%',
|
|
width: THEME_COMMON.rightDrawerWidth,
|
|
height: '100%',
|
|
bottom: '0',
|
|
top: '0',
|
|
},
|
|
closed: {
|
|
x: '100%',
|
|
width: THEME_COMMON.rightDrawerWidth,
|
|
height: '100%',
|
|
bottom: '0',
|
|
top: 'auto',
|
|
},
|
|
};
|