mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-30 23:23:47 +03:00
Prevent layout shift on page load (#2268)
- prevent layout shift on page load
This commit is contained in:
parent
dda911fea7
commit
48aa89664a
@ -50,6 +50,7 @@ const NavCollapseButton = ({
|
||||
return (
|
||||
<>
|
||||
<StyledCollapseButton
|
||||
initial={{ opacity: show ? 1 : 0 }}
|
||||
animate={{
|
||||
opacity: show ? 1 : 0,
|
||||
}}
|
||||
|
@ -48,6 +48,7 @@ export const NavbarAnimatedContainer = ({
|
||||
onAnimationComplete={() => {
|
||||
setIsNavbarSwitchingSize(false);
|
||||
}}
|
||||
initial={{ width: isNavbarOpened ? leftBarWidth : '0' }}
|
||||
animate={{
|
||||
width: isNavbarOpened ? leftBarWidth : '0',
|
||||
opacity: isNavbarOpened ? 1 : 0,
|
||||
|
Loading…
Reference in New Issue
Block a user