From 9782bd32520d7f929087e89407ef6b1028a9ea5b Mon Sep 17 00:00:00 2001 From: Bobban Rydh Date: Sun, 18 Oct 2026 23:29:32 +0200 Subject: [PATCH] Keep the user menu and the narrow-sidebar button at the bottom of the screen when the menu scrolls Co-Authored-By: Claude Sonnet 5.5 --- web/src/styles.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/web/src/styles.css b/web/src/styles.css index 2a64ca3..57190ec 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -113,6 +113,24 @@ html[data-env] .navbar-vertical[data-bs-theme="dark"] .btn-outline-secondary { position: relative; } +/* On a wide screen the menu scrolls inside the sidebar; the foot (who is signed in, narrow/widen) stays at the bottom of the screen instead of scrolling away with it. */ +.navbar-vertical { + --hlm-sidebar-bg: var(--tblr-navbar-bg); +} + +html[data-env] .navbar-vertical { + --hlm-sidebar-bg: var(--hlm-env-color); +} + +@media (min-width: 992px) { + .navbar-vertical .navbar-footer { + position: sticky; + bottom: 0; + z-index: 1035; /* above Tabler's open submenus (1030), which would otherwise show through */ + background-color: var(--hlm-sidebar-bg); + } +} + .user-menu-toggle { display: flex; align-items: center;