From f228a8b549abb77905204ffa2df469c8e9d94585 Mon Sep 17 00:00:00 2001 From: maziggy Date: Wed, 1 Apr 2026 09:17:03 +0200 Subject: [PATCH] Fix sidebar bottom icons cut off when smart plugs enabled (#862) --- CHANGELOG.md | 1 + frontend/src/components/Layout.tsx | 6 +++--- static/assets/index-B4zcncds.css | 1 - static/assets/index-Bz3PqAxB.css | 1 + static/assets/{index-CPo_HX6d.js => index-vkI-ayst.js} | 2 +- static/index.html | 4 ++-- 6 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 static/assets/index-B4zcncds.css create mode 100644 static/assets/index-Bz3PqAxB.css rename static/assets/{index-CPo_HX6d.js => index-vkI-ayst.js} (95%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3672b9165..283d6d71e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ All notable changes to Bambuddy will be documented in this file. - **Plate Thumbnails 401 in Print Modal** — Multi-plate 3MF plate thumbnails in the print modal returned 401 Unauthorized when authentication was enabled. The backend returns bare URL paths for plate thumbnails, but the `PlateSelector` component used them directly in `` without appending the stream token. Fixed by passing the URL through `withStreamToken()`. - **Schedule Calendar Picker Opens Off-Screen** — Clicking the calendar icon in the print modal's scheduled mode opened the native date picker at the bottom of the viewport instead of near the date field. The hidden `datetime-local` input used `sr-only` positioning which anchored the picker off-screen. Fixed by positioning the hidden input inside the date field's container. - **SpoolBuddy Kiosk Display Blanking and Crashes** — The kiosk Chromium flags added in 0.2.2.2 caused display instability: `--js-flags=--max-old-space-size=128` crashed the V8 renderer when heap exceeded 128 MB, `--enable-low-end-device-mode` aggressively killed GPU rendering surfaces, and resetting `CHROMIUM_FLAGS` discarded the Pi's GPU defaults (`--enable-gpu-rasterization`, ANGLE/GLES) creating an unstable mixed CPU/GPU rendering path. Fixed by removing both flags, appending kiosk flags to Pi defaults instead of replacing them, adding a `wlr-randr` keep-alive loop to prevent display blanking, and adding `0` to the labwc config. +- **Sidebar Bottom Icons Cut Off With Smart Plugs** ([#862](https://github.com/maziggy/bambuddy/issues/862)) — Adding smart plug buttons to the sidebar caused the bottom icon row to overflow and get partially cut off. The footer section could be compressed by the flexbox layout when the navigation area grew. Fixed by preventing the footer from shrinking, allowing the expanded icon row to wrap, and adding scroll overflow to the collapsed sidebar icon stack. Reported by @chrismaddahl. ## [0.2.2.2] - 2026-03-27 diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 6acb12c87..09b019e58 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -680,11 +680,11 @@ export function Layout() { )} {/* Footer */} -
+
{isSidebarCompact || sidebarExpanded ? (
{/* Top row: icons */} -
+
{hasSwitchbarPlugs && (
) : ( -
+
{updateCheck?.update_available && (