Skip to content

Commit da3be01

Browse files
authored
Merge pull request #98 from primev/infinite-scroll
fix: use dynamic viewport height to prevent mobile infinite scroll
2 parents d6fddb2 + 37a934e commit da3be01

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/(app)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ function AppLayoutContent({ children }: { children: React.ReactNode }) {
164164

165165
if (hideLayout) {
166166
return (
167-
<div className="relative min-h-screen">
167+
<div className="relative h-dvh overflow-hidden">
168168
<AnimatedBackground />
169-
<div className="relative z-10">{children}</div>
169+
<div className="relative z-10 h-full">{children}</div>
170170
</div>
171171
)
172172
}

src/components/landing/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const IndexPage = ({
176176
}, [isConnected, address, tokenId, isLoadingTokenId, router])
177177

178178
return (
179-
<div className="relative h-screen flex flex-col overflow-hidden bg-background">
179+
<div className="relative h-dvh flex flex-col overflow-hidden bg-background">
180180
<AnimatedBackground />
181181
<div className="relative z-10 w-full px-4 flex-1 flex flex-col justify-between py-4 sm:py-6 tablet:py-8 lg:py-6">
182182
<div className="max-w-6xl mx-auto w-full text-center flex-1 flex flex-col justify-between">

0 commit comments

Comments
 (0)