From 9cc5e8547438bb70f6d7f7947dd0c378fe59e693 Mon Sep 17 00:00:00 2001 From: RNL Date: Thu, 25 Jun 2026 00:18:19 +1000 Subject: [PATCH] Remove redundant AMS Status card; fix compact AMS group width by switching to Bootstrap col-lg-3 so single-slot units match one tray card width on all screen sizes. --- bambu_run/static/bambu_run/css/dashboard.css | 19 ++-------- .../bambu_run/printer_dashboard.html | 35 ++----------------- 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/bambu_run/static/bambu_run/css/dashboard.css b/bambu_run/static/bambu_run/css/dashboard.css index 1f826e1..42e54e3 100644 --- a/bambu_run/static/bambu_run/css/dashboard.css +++ b/bambu_run/static/bambu_run/css/dashboard.css @@ -113,29 +113,14 @@ border-color: currentColor; } -/* Grouped AMS unit panels — wide (multi-slot) units stack one per row, - compact (single-slot, e.g. AMS HT) units flow side-by-side and wrap. */ -.ams-groups { - display: flex; - flex-wrap: wrap; - gap: 1rem; -} - +/* Grouped AMS unit panels — Bootstrap row/col handles sizing; + multi-slot units (AMS/AMS 2 Pro) are col-12, single-slot (AMS HT) are col-lg-3. */ .ams-group { border-radius: 0.5rem; padding: 0.75rem; border: 1px solid var(--ams-group-border-color); } -.ams-group--wide { - flex: 1 1 100%; -} - -.ams-group--compact { - flex: 0 1 auto; - min-width: 220px; -} - .ams-badge-bg-ams { background-color: color-mix(in srgb, var(--ams-badge-ams) 8%, transparent); border-left: 3px solid var(--ams-badge-ams); diff --git a/bambu_run/templates/bambu_run/printer_dashboard.html b/bambu_run/templates/bambu_run/printer_dashboard.html index a171f74..8db36d7 100644 --- a/bambu_run/templates/bambu_run/printer_dashboard.html +++ b/bambu_run/templates/bambu_run/printer_dashboard.html @@ -164,37 +164,6 @@ {% endif %} - -
-
-
-
-
AMS Status
-
-
-
-
- Temperature: - {% if stats.ams_temp %} - {{ stats.ams_temp|floatformat:1 }}°C - {% else %} - N/A - {% endif %} -
-
- Humidity: - {% if stats.ams_humidity %} - {{ stats.ams_humidity }}% - {% else %} - N/A - {% endif %} -
-
-
-
-
-
-
@@ -212,9 +181,9 @@ {% endfor %}
{% endif %} -
+
{% for group in stats.ams_groups %} -
+
{{ group.label }} {% if group.humidity is not None or group.temp is not None %}