From 78b0cc06e21a958fac705294de2b3463d3a6e3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 8 Oct 2026 21:29:56 +0200 Subject: [PATCH] fix(documents): keep the bulk bar clear of the bottom bar on a phone held sideways The bar dropped to the page edge at md, but the bottom bar follows the shell and stays on a touch screen held sideways, which left the action row, Delete included, half under it. Key the drop on shell-desktop and include the home-indicator inset. --- .../documents/__tests__/document-bulk-bar.test.tsx | 11 +++++++++++ src/components/documents/document-bulk-bar.tsx | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/documents/__tests__/document-bulk-bar.test.tsx b/src/components/documents/__tests__/document-bulk-bar.test.tsx index 3ddea1b6c..3c97a94bc 100644 --- a/src/components/documents/__tests__/document-bulk-bar.test.tsx +++ b/src/components/documents/__tests__/document-bulk-bar.test.tsx @@ -110,4 +110,15 @@ describe("", () => { // assertion above is about the visit menu and not about an empty render. expect(html).toContain("Link condition"); }); + + it("drops to the page edge only when the bottom bar is gone", () => { + // The bar follows the shell, not `md`: a phone held sideways is wider + // than `md` and still shows the bottom bar over a `md:` drop. + const html = render([]); + const cls = + html.match(/data-slot="document-bulk-bar"[^>]*class="([^"]*)"/)?.[1] ?? + ""; + expect(cls).toContain("shell-desktop:bottom-6"); + expect(cls).not.toMatch(/(?