feat - Compact sidebar (#7414)
This commit is contained in:
+2
-2
@@ -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,
|
||||
});
|
||||
+9
@@ -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,
|
||||
});
|
||||
Reference in New Issue
Block a user