feat - Compact sidebar (#7414)

This commit is contained in:
nitin
2024-10-15 14:02:28 +02:00
committed by GitHub
parent c0610419c2
commit a9deede9ba
26 changed files with 524 additions and 292 deletions
@@ -3,7 +3,7 @@ import { MOBILE_VIEWPORT } from 'twenty-ui';
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
export const isNavigationDrawerOpenState = atom({
key: 'isNavigationDrawerOpen',
export const isNavigationDrawerExpandedState = atom({
key: 'isNavigationDrawerExpanded',
default: !isMobile,
});
@@ -0,0 +1,9 @@
import { atom } from 'recoil';
import { MOBILE_VIEWPORT } from 'twenty-ui';
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
export const navigationDrawerExpandedMemorizedState = atom({
key: 'navigationDrawerExpandedMemorized',
default: !isMobile,
});