Skip to content

Commit 5746a7d

Browse files
committed
fix: Make sure footer hides correctly on desktop
1 parent 2a6bc70 commit 5746a7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/components/Wave.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
svg {
1717
transition: opacity 0.1s var(--bezier-one);
1818
position: absolute;
19-
bottom: 0rem;
19+
bottom: -1px;
2020
z-index: -1;
2121
width: 100%;
2222
height: 40vh;

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
onMount(() => {
1212
const checkVisibility = () => {
1313
const wave = document.querySelector('.wave');
14-
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight);
14+
bottomVisibility = !(wave && wave.getBoundingClientRect().bottom < window.innerHeight - 1);
1515
};
1616
1717
window.addEventListener('scroll', checkVisibility, { passive: true });

0 commit comments

Comments
 (0)