From 2c9c2d12c082b82773413396cf29a93383fe44fc Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 10 Sep 2026 10:19:20 +0200 Subject: [PATCH] fix: one mobile menu, and sources reachable on a phone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three faults, all visible on a phone at once. Two hamburgers, neither useful. The assistant added a drawer button of its own AND the app's button was still there, stacked on top of it. Worse, the assistant hid the app sidebar unconditionally, so the app's button opened something invisible. A phone now has exactly one menu — the app sidebar — and the assistant only replaces it with its own rail on desktop. The collapse control had nothing to collapse on a phone, where the menu is a sheet rather than a rail. It closes the sheet instead. Sources were `display:none` below 640px with no alternative, so every SRC chip in an answer pointed at nothing. They now slide up as a dismissible sheet, opened by a button that appears only when an answer actually has citations, or by tapping a citation itself. Tapping away or pressing Escape closes it — a sheet with no way out is a trap. The menu itself is sized for a thumb, borrowing the reference layout: a wide sheet, close and search leading, tappable rows, and padding clear of the home indicator. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_0161xNW1z4vPusrXKGWcQdQu --- public/components/assistant.html | 4 ++- public/css/assistant.css | 22 +++++++++++- public/css/styles.css | 26 +++++++++++++- public/js/app.js | 6 ++++ public/js/clinicalAssistant.js | 43 ++++++++++++++++++++--- test/assistant-mobile.test.js | 59 ++++++++++++++++++++++++++++++++ 6 files changed, 152 insertions(+), 8 deletions(-) create mode 100644 test/assistant-mobile.test.js diff --git a/public/components/assistant.html b/public/components/assistant.html index a72cffe8..98aa9fcf 100644 --- a/public/components/assistant.html +++ b/public/components/assistant.html @@ -1,5 +1,4 @@
-