From 0003cefa1a8638ef064247f2d76da4c44b9bcda7 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Mon, 29 Jul 2024 13:52:18 +0200 Subject: [PATCH] :sparkles: Add client working --- .../Components/DesignSystem/Footer/index.tsx | 11 +- .../DefaultDoubleSidePage/classes.module.scss | 2 +- .../AddClientToFolder/classes.module.scss | 13 +- .../Folder/AddClientToFolder/index.tsx | 435 +++++++++--------- 4 files changed, 222 insertions(+), 239 deletions(-) diff --git a/src/front/Components/DesignSystem/Footer/index.tsx b/src/front/Components/DesignSystem/Footer/index.tsx index a212956f..aad7305e 100644 --- a/src/front/Components/DesignSystem/Footer/index.tsx +++ b/src/front/Components/DesignSystem/Footer/index.tsx @@ -11,11 +11,18 @@ type IProps = { }; export default function Footer({ className, hasLeftPadding = false, isSticky = false }: IProps) { + const footerRef = React.useRef(null); useEffect(() => { - document.documentElement.style.setProperty("--footer-height", `43px`); + if (!footerRef.current) return; + const footerHeight = footerRef.current.clientHeight + 1; + document.documentElement.style.setProperty("--footer-height", `${footerHeight}px`); }); return ( -