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 ( -