From 4a5b593611ea077fd792633f50e0987de56ef0e3 Mon Sep 17 00:00:00 2001 From: VincenzoDeSisto Date: Fri, 6 Sep 2024 16:16:38 +0200 Subject: [PATCH] fix(validatore): fix footer position v2 --- .../validatore/partials/ValidatoreResult.js | 36 ++----------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/src/components/static-content/validatore/partials/ValidatoreResult.js b/src/components/static-content/validatore/partials/ValidatoreResult.js index 3db8dbc2..dd20dda4 100644 --- a/src/components/static-content/validatore/partials/ValidatoreResult.js +++ b/src/components/static-content/validatore/partials/ValidatoreResult.js @@ -18,8 +18,6 @@ const ValidatoreResult = () => { const buttonGroupErrorEl = document.getElementById("button-group-error"); const backgroundEl = document.getElementById("background-custom"); - const pageFrontEl = document.getElementById("page-front"); - const spaceEl = document.getElementById("space"); const errorRef = useRef(null); const warningRef = useRef(null); @@ -84,12 +82,6 @@ const ValidatoreResult = () => { offset - (isMobile() ? 0 : 80) }px, white 0)`; }; - const handleChangeSpace = () => { - const offset = pageFrontEl.clientHeight; - spaceEl.style.height = `calc(${window.screen.height}px - ${ - offset - 110 - }px)`; - }; // to calculate the background (light-blue) height useEffect(() => { @@ -102,24 +94,9 @@ const ValidatoreResult = () => { return () => { window.removeEventListener("resize", handleChangeBackground); - window.removeEventListener("resize", handleChangeSpace); }; }, [buttonGroupErrorEl, response, backgroundEl]); - //to separate div between
and