From 7b6d518ca60aeb7d705a4453cfeb557101003dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 12 Nov 2026 15:09:34 +0100 Subject: [PATCH] fix(mobile): coach padding with the keyboard up, chip remove targets - The Coach thread kept 80 px free under the last message for the New conversation button while the keyboard hid that button. - The remove buttons on lab alias chips and attached-document chips reached sideways into their own label and the next chip, and an alias is removed at once. Their tap area now stays inside the chip's gaps sideways and keeps its height. - A capture menu comment described a dialog that is gone. --- src/__tests__/baselines/version-stamp-comments.json | 2 +- .../insights/coach-panel/__tests__/message-thread.test.tsx | 4 +++- src/components/insights/coach-panel/message-thread.tsx | 5 +++-- src/components/labs/biomarker-aliases.tsx | 2 +- src/components/layout/capture-picker.tsx | 3 --- src/components/settings/share-link-create-form.tsx | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/__tests__/baselines/version-stamp-comments.json b/src/__tests__/baselines/version-stamp-comments.json index b9b9a0eee..b305c94b7 100644 --- a/src/__tests__/baselines/version-stamp-comments.json +++ b/src/__tests__/baselines/version-stamp-comments.json @@ -1088,7 +1088,7 @@ "components/layout/account-switcher-menu.tsx": 1, "components/layout/auth-shell.tsx": 13, "components/layout/bottom-nav.tsx": 8, - "components/layout/capture-picker.tsx": 4, + "components/layout/capture-picker.tsx": 3, "components/layout/nav-model.ts": 17, "components/layout/record-session-fence-bridge.tsx": 1, "components/layout/shared-record-banner.tsx": 1, diff --git a/src/components/insights/coach-panel/__tests__/message-thread.test.tsx b/src/components/insights/coach-panel/__tests__/message-thread.test.tsx index ea843d1aa..5142b85f3 100644 --- a/src/components/insights/coach-panel/__tests__/message-thread.test.tsx +++ b/src/components/insights/coach-panel/__tests__/message-thread.test.tsx @@ -258,8 +258,10 @@ describe("", () => { html.match(/]*data-slot="coach-message-thread"[^>]*>/)?.[0] ?? ""; expect(scroller).toContain("pb-20"); - // Back to the plain gutter once the button sits beside the composer. + // Back to the plain gutter once the button sits beside the composer, + // and while the keyboard hides it. expect(scroller).toContain("@min-[57rem]/coach-thread:pb-6"); + expect(scroller).toContain("keyboard-open:pb-6"); }); it("folds an older message's provenance into the thought-process row, never a raw key", () => { diff --git a/src/components/insights/coach-panel/message-thread.tsx b/src/components/insights/coach-panel/message-thread.tsx index d61fa1c4e..ddd6a20dc 100644 --- a/src/components/insights/coach-panel/message-thread.tsx +++ b/src/components/insights/coach-panel/message-thread.tsx @@ -657,8 +657,9 @@ export function MessageThread({ // bottom edge while the composer fills the column (`NewChatFab`), // so the last message keeps the button's height free, as the // shell clears the Coach button. The button moves beside a 54rem - // composer, which the column is at 57rem with its padding. - "pb-20 @min-[57rem]/coach-thread:pb-6", + // composer, which the column is at 57rem with its padding, and + // hides while the keyboard is up. + "keyboard-open:pb-6 pb-20 @min-[57rem]/coach-thread:pb-6", )} > {[ diff --git a/src/components/labs/biomarker-aliases.tsx b/src/components/labs/biomarker-aliases.tsx index 21be66623..6fffeaa93 100644 --- a/src/components/labs/biomarker-aliases.tsx +++ b/src/components/labs/biomarker-aliases.tsx @@ -90,7 +90,7 @@ export function BiomarkerAliases({ {canEdit ? (