From d4e5dea1fc2bc8e64020594627f3ca4b7a06f8ed Mon Sep 17 00:00:00 2001 From: Kobe Date: Sun, 25 May 2025 18:09:26 +0200 Subject: [PATCH] sticky nav --- templates/common/base.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/common/base.html b/templates/common/base.html index 01a2bbc..74d1675 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -23,12 +23,19 @@ .navbar { background-color: var(--primary-color) !important; + position: sticky; + top: 0; + z-index: 1030; } .sidebar { background-color: white; min-height: calc(100vh - 56px); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); + position: sticky; + top: 56px; /* Height of the navbar */ + height: calc(100vh - 56px); + overflow-y: auto; } .sidebar .nav-link {