From f5cf757142b2cf7c613b18f3e235dc5d378d467a Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 9 Jul 2025 09:35:08 +0200 Subject: [PATCH] Fix sticky positioning of version and storage info in admin sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change AdminLayout to use h-screen instead of min-h-screen - Add overflow-hidden to prevent scrollbar on outer container - Update sidebar to use h-screen for proper height reference - Add flex-shrink-0 to header and bottom sections - Add min-h-0 to navigation to allow proper overflow - Add overflow-y-auto to main content area The version info and storage usage now properly stick to the bottom of the viewport instead of the bottom of the page content. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/src/components/admin/AdminLayout.tsx | 6 +++--- frontend/src/components/admin/AdminSidebar.tsx | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/admin/AdminLayout.tsx b/frontend/src/components/admin/AdminLayout.tsx index 76f9090..c99ed93 100644 --- a/frontend/src/components/admin/AdminLayout.tsx +++ b/frontend/src/components/admin/AdminLayout.tsx @@ -30,7 +30,7 @@ export const AdminLayout: React.FC = () => { } return ( -
+
{/* Mobile sidebar backdrop */} {sidebarOpen && (
{ setSidebarOpen(false)} /> {/* Main content */} -
+
{/* Header */} setSidebarOpen(true)} /> @@ -51,7 +51,7 @@ export const AdminLayout: React.FC = () => { {/* Page content */} -
+
diff --git a/frontend/src/components/admin/AdminSidebar.tsx b/frontend/src/components/admin/AdminSidebar.tsx index 946f61d..f069210 100644 --- a/frontend/src/components/admin/AdminSidebar.tsx +++ b/frontend/src/components/admin/AdminSidebar.tsx @@ -45,13 +45,13 @@ export const AdminSidebar: React.FC = ({ isOpen, onClose }) = return (
-
+
{/* Logo/Brand */} -
+
{t('admin.title')} @@ -65,7 +65,7 @@ export const AdminSidebar: React.FC = ({ isOpen, onClose }) =
{/* Navigation */} -