finally fixed offset for mobile devices

This commit is contained in:
Ludwig Lehnert 2025-04-14 22:41:34 +02:00
parent 5068d9fdcc
commit f629ae2128

View File

@ -134,10 +134,10 @@
}); });
const svgResizeListener = () => { const svgResizeListener = () => {
linesSVG?.setAttribute( if (!linesSVG) return;
"viewBox", const w = linesSVG.clientWidth;
`0 0 ${window.innerWidth} ${window.innerHeight}`, const h = linesSVG.clientHeight;
); linesSVG.setAttribute("viewBox", `0 0 ${w} ${h}`);
}; };
svgResizeListener(); svgResizeListener();