From dbfc993114f6d7f086f0614b18f406d67bf515a0 Mon Sep 17 00:00:00 2001 From: MrAlders0n Date: Fri, 18 Sep 2026 06:11:15 -0400 Subject: [PATCH] fix(layout): keep region picker right-anchored on desktop --- src/components/AppShell.tsx | 2 +- src/components/Dropdown.tsx | 7 +++++-- tests/components/AppShell.test.tsx | 11 +++++++++++ tests/components/Dropdown.test.tsx | 15 +++++++++++++++ 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/components/AppShell.tsx b/src/components/AppShell.tsx index 3f4afb1f..cc0d9e94 100644 --- a/src/components/AppShell.tsx +++ b/src/components/AppShell.tsx @@ -114,7 +114,7 @@ function RegionSelector() { return ( ( }> + {() =>
option
} +
, + ); + fireEvent.click(screen.getByText("trigger")); + const panel = screen.getByTestId("dropdown-panel").parentElement!; + expect(panel.className).toContain("left-0"); + expect(panel.className).toContain("md:left-auto"); + expect(panel.className).toContain("md:right-0"); + }); +});