From 8147aa2fd85ce332af60cd05a7d9961e50b61c78 Mon Sep 17 00:00:00 2001 From: lavrov08 <5452894@gmail.com> Date: Sat, 16 Aug 2025 12:35:15 +0300 Subject: [PATCH] fix(layout): optimize grid positioning to prevent footer overlap - Increase main content bottom padding from pb-8 to pb-24 - Add grid-layout CSS class with responsive height controls - Enhance footer visibility with background, backdrop blur, and z-index - Add CSS rules for better grid height management - Ensure footer is always visible and properly spaced --- app/globals.css | 19 +++++++++++++++++++ app/page.tsx | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/app/globals.css b/app/globals.css index b0f8944..4eef66b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -174,3 +174,22 @@ .overflow-y-auto::-webkit-scrollbar-thumb:hover { @apply bg-gray-500 dark:bg-slate-400; } + +/* Grid layout optimizations */ +.grid-layout { + min-height: 600px; + max-height: calc(100vh - 16rem); +} + +@media (max-width: 1024px) { + .grid-layout { + min-height: auto; + max-height: none; + } +} + +/* Ensure footer is always visible */ +footer { + position: relative; + z-index: 10; +} diff --git a/app/page.tsx b/app/page.tsx index f29528b..774bda5 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -97,10 +97,10 @@ export default function Dashboard() { {/* Main Content */} -
+
{/* Single Responsive Layout */} -
+
{/* Timer - Always first */}
{/* Footer */} -