Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 14 additions & 23 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ header.header {
.layout {
display: flex;
height: 100vh;
padding-top: var(--header);
padding-top: var(--header); /* Pushes content down below fixed header */
overflow: hidden;
}

/* SIDEBAR CONTAINER (New wrapper for mobile logic) */
/* SIDEBAR CONTAINER (Desktop default) */
.sidebar-container {
width: var(--sidebar);
flex-shrink: 0;
Expand Down Expand Up @@ -539,16 +539,8 @@ aside.sidebar {
}

.mobile-overlay {
display: block;
position: absolute;
top: var(--header); /* Start below the fixed header */
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 40;
backdrop-filter: blur(2px);
}
display: none;
}

@media (max-width: 768px) {
header.header {
Expand All @@ -560,19 +552,18 @@ aside.sidebar {
display: block;
}

/* Make layout relative for absolute positioning of sidebar */
.layout {
position: relative;
flex-direction: column;
}

/* Turn Sidebar into a slide-out drawer */
/* Bulletproof fixed positioning for mobile drawer */
.sidebar-container {
position: absolute;
top: var(--header); /* Start below the fixed header */
bottom: 0; /* Stretch to the bottom */
height: auto; /* Override the desktop 100% height */
left: -100%;
position: fixed;
top: var(--header);
bottom: 0;
height: calc(100vh - var(--header)); /* Ensures it exactly fills the remaining space */
left: -100%; /* Hidden off-screen */
z-index: 90; /* Just below the header */
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

Expand All @@ -594,13 +585,13 @@ aside.sidebar {
/* Show the darkening overlay */
.mobile-overlay {
display: block;
position: absolute;
top: 0;
position: fixed;
top: var(--header);
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 40;
z-index: 80; /* Just below the sidebar */
backdrop-filter: blur(2px);
}

Expand Down
Loading