mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
@@ -353,7 +353,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
|
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<header
|
<header
|
||||||
className="sticky top-0 z-50 glass border-b border-dark-800/50"
|
className="fixed top-0 left-0 right-0 z-50 glass border-b border-dark-800/50"
|
||||||
style={{
|
style={{
|
||||||
// In fullscreen mode, add padding for safe area + Telegram native controls (close/menu buttons in corners)
|
// In fullscreen mode, add padding for safe area + Telegram native controls (close/menu buttons in corners)
|
||||||
paddingTop: isFullscreen ? `${Math.max(safeAreaInset.top, contentSafeAreaInset.top) + 45}px` : undefined,
|
paddingTop: isFullscreen ? `${Math.max(safeAreaInset.top, contentSafeAreaInset.top) + 45}px` : undefined,
|
||||||
@@ -500,6 +500,16 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
{/* Spacer for fixed header - matches header height */}
|
||||||
|
{isFullscreen ? (
|
||||||
|
<div
|
||||||
|
className="flex-shrink-0"
|
||||||
|
style={{ height: `${64 + Math.max(safeAreaInset.top, contentSafeAreaInset.top) + 45}px` }}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<div className="flex-shrink-0 h-16 lg:h-20" />
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Mobile menu - fixed overlay below header */}
|
{/* Mobile menu - fixed overlay below header */}
|
||||||
{mobileMenuOpen && (
|
{mobileMenuOpen && (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -203,6 +203,10 @@
|
|||||||
background-color: rgba(254, 249, 240, 0.5) !important; /* champagne-100/50 */
|
background-color: rgba(254, 249, 240, 0.5) !important; /* champagne-100/50 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.light .bg-dark-900\/95 {
|
||||||
|
background-color: rgba(254, 249, 240, 0.95) !important; /* champagne-100/95 - mobile menu sticky header */
|
||||||
|
}
|
||||||
|
|
||||||
.light .bg-dark-950 {
|
.light .bg-dark-950 {
|
||||||
background-color: #F7E7CE !important; /* champagne-200 */
|
background-color: #F7E7CE !important; /* champagne-200 */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user