mirror of
https://github.com/twentyhq/twenty.git
synced 2025-01-01 16:51:46 +03:00
parent
f19ed5e2e4
commit
e3691ad143
@ -39,16 +39,11 @@ const StyledLayout = styled.div`
|
||||
}
|
||||
`;
|
||||
|
||||
const NAVBAR_WIDTH = '236px';
|
||||
|
||||
const StyledMainContainer = styled.div`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
width: ${() =>
|
||||
useRecoilValue(isNavbarOpenedState)
|
||||
? `calc(100% - ${NAVBAR_WIDTH})`
|
||||
: '100%'};
|
||||
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
||||
width: ${() => (useRecoilValue(isNavbarOpenedState) ? '0' : '100%')};
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ const NavCollapseButton = ({
|
||||
return (
|
||||
<>
|
||||
<StyledCollapseButton
|
||||
initial={{ opacity: show ? 1 : 0 }}
|
||||
initial={false}
|
||||
animate={{
|
||||
opacity: show ? 1 : 0,
|
||||
}}
|
||||
|
@ -48,7 +48,7 @@ export const NavbarAnimatedContainer = ({
|
||||
onAnimationComplete={() => {
|
||||
setIsNavbarSwitchingSize(false);
|
||||
}}
|
||||
initial={{ width: isNavbarOpened ? leftBarWidth : '0' }}
|
||||
initial={false}
|
||||
animate={{
|
||||
width: isNavbarOpened ? leftBarWidth : '0',
|
||||
opacity: isNavbarOpened ? 1 : 0,
|
||||
|
Loading…
Reference in New Issue
Block a user