The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Prevent layout shift on page load (#2268)
brendanlaschke48aa89664a45
diff --git a/front/src/modules/ui/navigation/navbar/components/NavCollapseButton.tsx b/front/src/modules/ui/navigation/navbar/components/NavCollapseButton.tsxindex 0c5c0fc776a..004aac43c64 100644--- a/front/src/modules/ui/navigation/navbar/components/NavCollapseButton.tsx+++ b/front/src/modules/ui/navigation/navbar/components/NavCollapseButton.tsx@@ -50,6 +50,7 @@ const NavCollapseButton = ({return (<><StyledCollapseButton+ initial={{ opacity: show ? 1 : 0 }}animate={{opacity: show ? 1 : 0,}}diff --git a/front/src/modules/ui/navigation/navbar/components/NavbarAnimatedContainer.tsx b/front/src/modules/ui/navigation/navbar/components/NavbarAnimatedContainer.tsxindex a2c56ece780..6d7f9cd7a1c 100644--- a/front/src/modules/ui/navigation/navbar/components/NavbarAnimatedContainer.tsx+++ b/front/src/modules/ui/navigation/navbar/components/NavbarAnimatedContainer.tsx@@ -48,6 +48,7 @@ export const NavbarAnimatedContainer = ({onAnimationComplete={() => {setIsNavbarSwitchingSize(false);}}+ initial={{ width: isNavbarOpened ? leftBarWidth : '0' }}animate={{width: isNavbarOpened ? leftBarWidth : '0',opacity: isNavbarOpened ? 1 : 0,