Spaces:
Running

axeronis commited on
Commit
0a883f1
·
1 Parent(s): 524459e

fix: Global mobile layout - overflow-x-hidden, adjusted paddings for header/nav

Browse files
Files changed (1) hide show
  1. frontend/app/layout.tsx +5 -3
frontend/app/layout.tsx CHANGED
@@ -83,9 +83,11 @@ export default function RootLayout({
83
  {/* Mobile Header - fixed at top */}
84
  <MobileHeader />
85
 
86
- {/* Scrollable Content - with padding for headers and bottom nav on mobile */}
87
- <main className="flex-1 overflow-y-auto w-full relative pt-16 pb-20 md:pt-0 md:pb-0">
88
- {children}
 
 
89
  </main>
90
 
91
  {/* Mobile Bottom Navigation */}
 
83
  {/* Mobile Header - fixed at top */}
84
  <MobileHeader />
85
 
86
+ {/* Scrollable Content - mobile: between header (56px) and bottom nav (64px) */}
87
+ <main className="flex-1 overflow-y-auto overflow-x-hidden w-full relative pt-14 pb-16 md:pt-0 md:pb-0">
88
+ <div className="min-h-full">
89
+ {children}
90
+ </div>
91
  </main>
92
 
93
  {/* Mobile Bottom Navigation */}