This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
function changeStateOfSite(menuOn: boolean) {
|
||||
let siteContainer = document.body
|
||||
show = menuOn
|
||||
console.log("TEST")
|
||||
if (menuOn) siteContainer.style.overflow = "hidden"
|
||||
else siteContainer.style.overflow = "initial"
|
||||
}
|
||||
@@ -59,8 +58,9 @@
|
||||
textElement.style.letterSpacing = `${letterSpacing}px`
|
||||
}*/
|
||||
}
|
||||
|
||||
window.addEventListener("resize", stretchText)
|
||||
if (typeof window !== "undefined") {
|
||||
window.addEventListener("resize", stretchText)
|
||||
}
|
||||
onMount(stretchText)
|
||||
</script>
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
<div class="submenu-img">
|
||||
<img
|
||||
src="{`${apiBaseURL}navigation/${$navigation?.id}/${submenu.image?.src}?filter=${
|
||||
window.innerWidth > 500 ? 'xl' : 'm'
|
||||
window?.innerWidth > 500 ? 'xl' : 'm'
|
||||
}`}"
|
||||
alt="img"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user