From 6335751f0ff72673e8d88cd8ce704349dcb41af2 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Sun, 20 Oct 2024 20:22:31 -0400 Subject: [PATCH] sticky sidebar --- templates/index.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/templates/index.html b/templates/index.html index dd38d93..2619052 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,12 +15,13 @@ background-color: #f0f0f0; display: flex; flex-direction: row; - height: 100dvh; + min-height: 100vh; } .main-content { flex-grow: 1; padding: 20px; + overflow-y: auto; } .grid-container { display: grid; @@ -95,15 +96,14 @@ } .sidebar { - min-width: 20rem; + width: 20rem; background-color: #f0f0f0; padding: 20px; box-sizing: border-box; position: sticky; top: 0; height: 100vh; - overflow: hidden; - + overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; @@ -160,6 +160,7 @@ height: auto; position: static; padding: 10px; + overflow-y: visible; } .sidebar-nav ul { display: none; @@ -179,10 +180,7 @@