Spaces:
Running
Running
axeronis commited on
Commit ·
8400df2
1
Parent(s): 32d5a80
fix(mobile): increase global padding & fix syntax error in MessageInput
Browse files
frontend/app/layout.tsx
CHANGED
|
@@ -76,25 +76,25 @@ export default function RootLayout({
|
|
| 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
|
| 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 -
|
| 90 |
-
<main className="flex-1 overflow-y-auto w-full relative pt-[calc(
|
| 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>
|
|
|
|
| 76 |
</MobileSidebarWrapper>
|
| 77 |
|
| 78 |
{/* Main Content Area Container */}
|
| 79 |
+
{/* Main Content Area Container - removed transition-all to ensure fixed works relative to viewport */}
|
| 80 |
+
<div className="flex-1 flex flex-col h-full min-w-0 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 shadow-lg shadow-black/20">
|
| 86 |
<MobileHeader />
|
| 87 |
</div>
|
| 88 |
|
| 89 |
+
{/* Scrollable Content - INCREASED padding to ensure no overlap */}
|
| 90 |
+
<main className="flex-1 overflow-y-auto w-full relative pt-[calc(4.5rem+env(safe-area-inset-top))] pb-[calc(5.5rem+env(safe-area-inset-bottom))] md:pt-0 md:pb-0 scroll-smooth">
|
| 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 shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]">
|
| 98 |
<MobileBottomNav />
|
| 99 |
</div>
|
| 100 |
</div>
|
frontend/components/ChatWindow/MessageInput.tsx
CHANGED
|
@@ -131,7 +131,6 @@ export function MessageInput({
|
|
| 131 |
}
|
| 132 |
}
|
| 133 |
|
| 134 |
-
return (
|
| 135 |
return (
|
| 136 |
<div className="p-3 md:p-6 bg-[#0D0E18] flex-shrink-0 z-30">
|
| 137 |
<div className="max-w-4xl mx-auto relative">
|
|
|
|
| 131 |
}
|
| 132 |
}
|
| 133 |
|
|
|
|
| 134 |
return (
|
| 135 |
<div className="p-3 md:p-6 bg-[#0D0E18] flex-shrink-0 z-30">
|
| 136 |
<div className="max-w-4xl mx-auto relative">
|