From d3c2ea452a83837f5ebb57bfa63da98895f7a2c8 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 17 Nov 2026 04:11:39 -0500 Subject: [PATCH] Pages: a quiet tap highlight; the libraries panel's keys and a sheet's choices a finger's size; the map put away when the layout changes Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab --- e2e/phone.spec.ts | 5 ++++- src/ui/style.css | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/phone.spec.ts b/e2e/phone.spec.ts index a7ba60d..fbde5fc 100644 --- a/e2e/phone.spec.ts +++ b/e2e/phone.spec.ts @@ -226,7 +226,10 @@ test("pin and close from a pane's buttons, its ⋯, and the map of every open pa const sheet = page.locator(".menu.sheet"); await expect(sheet).toBeVisible(); await expect(sheet.locator(".mi", { hasText: "Unpin this pane" }).or(sheet.locator(".mi", { hasText: "Pin this pane" }))).toHaveCount(1); - for (const m of await sheet.locator(".mi").all()) expect((await m.boundingBox())!.height).toBeGreaterThanOrEqual(40); + for (const m of await sheet.locator(".mi, .choices button").all()) { + const b = (await m.boundingBox())!; + expect(Math.min(b.width, b.height)).toBeGreaterThanOrEqual(40); + } await shot(page, "09-pane-menu"); // A tap outside puts it away (on the status line, where a tap does nothing else). const status = (await page.locator(".status").boundingBox())!; diff --git a/src/ui/style.css b/src/ui/style.css index 678e2f2..14a78ab 100644 --- a/src/ui/style.css +++ b/src/ui/style.css @@ -867,7 +867,7 @@ html { scroll-padding-top: 48px; } } .menu.sheet .mi { padding: 0.62rem 1rem; } .menu.sheet .choices { padding: 0.45rem 1rem; } -.menu.sheet .choices button { padding: 0.35rem 0.6rem; font-size: 0.8rem; } +.menu.sheet .choices button { padding: 0.35rem 0.6rem; font-size: 0.8rem; min-height: 40px; min-width: 40px; } @media (hover: none) { .more { pointer-events: none; padding: 0.45em 0.6em; margin: -0.3em -0.4em -0.3em 0.3em; } .node.focused > .row > .more, .top.focused .more, :is(.sidenote, .inset).focused > .more { opacity: 1; pointer-events: auto; }