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; }