Skip to content

Commit 0978dc2

Browse files
committed
fix: main-content disappearing on mobile
Changed the sidebar to not cover the main-content on screen widths bellow 768px. I'm not sure why this was chosen as the min width elsewhere, but i will follow it.
1 parent a954ee3 commit 0978dc2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

frontend/src/index.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ body {
99
}
1010

1111
.sidebar {
12-
min-height: calc(100vh - 56px);
1312
background-color: #343a40;
1413
padding-top: 20px;
1514
}
1615

16+
/* The "min-width" comes from the "min-width" media attribute on "main-content" */
17+
@media (min-width: 768px) {
18+
.sidebar {
19+
min-height: calc(100vh - 56px);
20+
}
21+
}
22+
1723
/* Removed color and background styles as they are set inline in Sidebar.js */
1824
/* Kept basic layout and transition styles */
1925
.sidebar .nav-link {

0 commit comments

Comments
 (0)