From d5d9c0870cc2dfb0d9369d688219831617ee2ed3 Mon Sep 17 00:00:00 2001 From: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com> Date: Fri, 18 Sep 2026 06:12:14 -0400 Subject: [PATCH] fix(layout): keep region picker right-anchored on desktop (#47) --- 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 3f4afb1..cc0d9e9 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"); + }); +});