From 2d6eaccd96b2bdeeddc9689953e3450b9310411a Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 10 Sep 2026 05:06:23 +0200 Subject: [PATCH] fix: collapse to an icon rail, keep the menu scrollable, and brand as PedAI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Collapsing hid the sidebar entirely, and the toggle had moved into .menu-head while the hide rule still targeted direct children of .sidebar-nav — so the head went, taking the toggle with it, and there was no way to reopen the menu. Collapsed is now a 52px icon rail rather than a disappearance: the mark, the toggle, search and the account avatar stay reachable in place, so nothing has to be floated over the content and there is always a way back. The assistant rail collapses to the same strip. Scrolling. The workspace list in the assistant rail had no overflow rule, so its list of every app tab ran off the bottom and scrolling only appeared once you left for the app. In the app sidebar the opposite: the whole sidebar scrolled, so the account card scrolled away with the list and Settings and Log out became something to hunt for. Both now scroll only the list, with the head and the account card pinned. The toggle was also being styled twice — as a head-row icon button and by its own older rule with a different size and margin. It is now only the behavioural hook that flips the icon. Brand is PedAI, which is short enough to sit in the head row without squeezing the controls; the collapsed rail shows the mark alone. The reachability test now walks the toggle's real ancestor chain and fails if any collapse rule hides a branch it sits on, rather than asserting one rule's text — this class of bug has broken twice by moving the toggle deeper. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01GmpYHPSLGmXGZMyLpn2Lbe --- public/components/assistant.html | 2 +- public/css/assistant.css | 7 ++- public/css/styles.css | 61 ++++++++++++++------- public/index.html | 5 +- test/assistant-workspace-layout.test.js | 70 ++++++++++++++++++++++--- 5 files changed, 113 insertions(+), 32 deletions(-) diff --git a/public/components/assistant.html b/public/components/assistant.html index 829542ab..8e978e32 100644 --- a/public/components/assistant.html +++ b/public/components/assistant.html @@ -9,7 +9,7 @@