mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 06:58:19 +02:00
feat: add base mobile layout component with header, bottom navigation, and side menu.
This commit is contained in:
1 parent
7c7a4478c3
commit
29520c4264
1 file changed
+17
-5
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user