feat: tighten dashboard shell density

This commit is contained in:
afei A
2026-03-28 00:14:00 +08:00
parent ded6555dbc
commit 4ca3ef96b9
4 changed files with 30 additions and 17 deletions

View File

@@ -68,6 +68,15 @@ test("locks the rail to the viewport and makes the content pane independently sc
expect(main).toHaveClass("md:h-full", "md:overflow-y-auto");
});
test("uses a narrow desktop rail and removes the max-width shell cap", () => {
const { container } = render(<DashboardShell>dashboard body</DashboardShell>);
const shellFrame = container.firstElementChild;
const rail = screen.getByRole("complementary", { name: "Dashboard rail" });
expect(shellFrame).not.toHaveClass("max-w-7xl");
expect(rail.className).toContain("md:w-[228px]");
});
test("redirects the root page to orders", () => {
HomePage();