fix: Make sure footer hides correctly on desktop

This commit is contained in:
oSumAtrIX 2025-05-06 13:34:25 +02:00
parent 2a6bc70cfc
commit 5746a7d7ce
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
svg {
transition: opacity 0.1s var(--bezier-one);
position: absolute;
bottom: 0rem;
bottom: -1px;
z-index: -1;
width: 100%;
height: 40vh;

View File

@ -11,7 +11,7 @@
onMount(() => {
const checkVisibility = () => {
const wave = document.querySelector('.wave');
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight);
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight - 1);
};
window.addEventListener('scroll', checkVisibility, { passive: true });