From d2787c02fd3869497804c47b477594439cbc1370 Mon Sep 17 00:00:00 2001 From: RNL Date: Thu, 19 Feb 2026 14:12:28 +1100 Subject: [PATCH] added side bar toggle --- bambu_run/static/bambu_run/css/dashboard.css | 9 ++++++++ bambu_run/templates/bambu_run/base.html | 22 +++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/bambu_run/static/bambu_run/css/dashboard.css b/bambu_run/static/bambu_run/css/dashboard.css index dd87df5..97eda53 100644 --- a/bambu_run/static/bambu_run/css/dashboard.css +++ b/bambu_run/static/bambu_run/css/dashboard.css @@ -1,5 +1,14 @@ /* Bambu Run Dashboard Styles */ +/* Sidebar collapse layout */ +.wrapper { transition: margin-left 0.15s ease-out; } + +@media (min-width: 992px) { + .sidebar ~ .wrapper { margin-left: 256px; } + .sidebar.sidebar-narrow ~ .wrapper, + .sidebar.sidebar-narrow-unfoldable ~ .wrapper { margin-left: 56px; } +} + .chart-container { position: relative; height: 300px; diff --git a/bambu_run/templates/bambu_run/base.html b/bambu_run/templates/bambu_run/base.html index 96e26dd..94e1332 100644 --- a/bambu_run/templates/bambu_run/base.html +++ b/bambu_run/templates/bambu_run/base.html @@ -31,12 +31,16 @@ +
-
    @@ -68,6 +72,22 @@ +