Spaces:
Running
Running
axeronis commited on
Commit ·
ed65ca2
1
Parent(s): 3408f3d
fix(mobile): revert to fixed positioning, handle safe-area-top overlap
Browse files- frontend/app/globals.css +5 -0
- frontend/app/layout.tsx +11 -8
frontend/app/globals.css
CHANGED
|
@@ -660,6 +660,11 @@ input:-webkit-autofill:focus {
|
|
| 660 |
padding-bottom: env(safe-area-inset-bottom, 0);
|
| 661 |
}
|
| 662 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 663 |
/* Prevent zoom on iOS when focusing inputs */
|
| 664 |
@media screen and (max-width: 767px) {
|
| 665 |
|
|
|
|
| 660 |
padding-bottom: env(safe-area-inset-bottom, 0);
|
| 661 |
}
|
| 662 |
|
| 663 |
+
/* Safe area for top navigation */
|
| 664 |
+
.safe-area-top {
|
| 665 |
+
padding-top: env(safe-area-inset-top, 0);
|
| 666 |
+
}
|
| 667 |
+
|
| 668 |
/* Prevent zoom on iOS when focusing inputs */
|
| 669 |
@media screen and (max-width: 767px) {
|
| 670 |
|
frontend/app/layout.tsx
CHANGED
|
@@ -76,22 +76,25 @@ export default function RootLayout({
|
|
| 76 |
</MobileSidebarWrapper>
|
| 77 |
|
| 78 |
{/* Main Content Area Container */}
|
| 79 |
-
|
|
|
|
| 80 |
{/* Desktop Header */}
|
| 81 |
<Header />
|
| 82 |
|
| 83 |
-
{/* Mobile Header -
|
| 84 |
-
<div className="md:hidden
|
| 85 |
<MobileHeader />
|
| 86 |
</div>
|
| 87 |
|
| 88 |
-
{/* Scrollable Content -
|
| 89 |
-
<main className="flex-1 overflow-y-auto
|
| 90 |
-
|
|
|
|
|
|
|
| 91 |
</main>
|
| 92 |
|
| 93 |
-
{/* Mobile Bottom Navigation -
|
| 94 |
-
<div className="md:hidden
|
| 95 |
<MobileBottomNav />
|
| 96 |
</div>
|
| 97 |
</div>
|
|
|
|
| 76 |
</MobileSidebarWrapper>
|
| 77 |
|
| 78 |
{/* Main Content Area Container */}
|
| 79 |
+
{/* Main Content Area Container */}
|
| 80 |
+
<div className="flex-1 flex flex-col h-full min-w-0 transition-all duration-300 relative">
|
| 81 |
{/* Desktop Header */}
|
| 82 |
<Header />
|
| 83 |
|
| 84 |
+
{/* Mobile Header - fixed at top */}
|
| 85 |
+
<div className="md:hidden fixed top-0 left-0 right-0 z-50 bg-[#0F172A] border-b border-white/10 safe-area-top">
|
| 86 |
<MobileHeader />
|
| 87 |
</div>
|
| 88 |
|
| 89 |
+
{/* Scrollable Content - with padding for headers and bottom nav on mobile */}
|
| 90 |
+
<main className="flex-1 overflow-y-auto w-full relative pt-[calc(3.5rem+env(safe-area-inset-top))] pb-[calc(4rem+env(safe-area-inset-bottom))] md:pt-0 md:pb-0">
|
| 91 |
+
<div className="min-h-full">
|
| 92 |
+
{children}
|
| 93 |
+
</div>
|
| 94 |
</main>
|
| 95 |
|
| 96 |
+
{/* Mobile Bottom Navigation - fixed at bottom */}
|
| 97 |
+
<div className="md:hidden fixed bottom-0 left-0 right-0 z-50">
|
| 98 |
<MobileBottomNav />
|
| 99 |
</div>
|
| 100 |
</div>
|