Merge pull request #537 from R0m1k3/1.1

feat: add base mobile layout component with header, bottom navigation…
This commit is contained in:
LogiFlow authored and GitHub committed 2025-12-10 14:07:33 +01:00
commit 36ee75ea75
1 file changed
+17 -5
+17 -5
View File
@@ -49,12 +49,17 @@ export default function MobileLayout({ children, title }: MobileLayoutProps) {
return ( return (
<div <div
className="min-h-screen bg-gray-50 flex flex-col" className="bg-gray-50 flex flex-col"
style={{ style={{
width: '100%', width: '100%',
maxWidth: '100vw', maxWidth: '100vw',
overflowX: 'hidden', height: '100vh',
paddingBottom: '80px' overflow: 'hidden',
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0
}} }}
> >
{/* Header fixe */} {/* Header fixe */}
@@ -96,8 +101,15 @@ export default function MobileLayout({ children, title }: MobileLayoutProps) {
)} )}
</header> </header>
{/* Contenu principal */} {/* Contenu principal - scrollable avec espace pour navbar */}
<main className="flex-1 overflow-y-auto overflow-x-hidden"> <main
className="flex-1 overflow-x-hidden"
style={{
overflowY: 'auto',
paddingBottom: '80px',
WebkitOverflowScrolling: 'touch'
}}
>
{children} {children}
</main> </main>