Make header and footer fixed

- Updated CSS layout to use flexbox for full-height layout
- Header and footer are now fixed (flex-shrink: 0)
- Main content area scrolls independently between header and footer
- Sidebar also scrolls independently
- Ensures header and footer are always visible
This commit is contained in:
Edwin Noorlander 2025-11-19 15:08:20 +01:00
parent d1e6471502
commit d948dd72a6

View File

@ -21,19 +21,27 @@
body { body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; height: 100vh;
overflow: hidden;
}
header {
flex-shrink: 0;
z-index: 1020;
} }
.main-wrapper { .main-wrapper {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; overflow: hidden;
position: relative;
} }
.content-wrapper { .content-wrapper {
flex: 1; flex: 1;
display: flex; display: flex;
overflow: hidden; overflow: hidden;
width: 100%;
} }
.sidebar { .sidebar {
@ -43,15 +51,20 @@
overflow-y: auto; overflow-y: auto;
flex-shrink: 0; flex-shrink: 0;
transition: margin-left 0.3s ease; transition: margin-left 0.3s ease;
} height: 100%;
.sidebar.collapsed {
margin-left: -250px;
} }
.main-content { .main-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 20px; padding: 20px;
height: 100%;
}
footer {
flex-shrink: 0;
z-index: 1020;
background-color: #f8f9fa;
} }
.folder-toggle { .folder-toggle {