fix(ui): honor stats bar desktop gutters
Quality / quality (windows-latest) (push) Waiting to run
Quality / quality (ubuntu-latest) (push) Failing after 9m51s

This commit is contained in:
2026-08-25 16:50:10 +05:30
parent 510b3ba777
commit 3f6612cfe7
4 changed files with 27 additions and 3 deletions
+10
View File
@@ -3194,6 +3194,16 @@ test("breadcrumb default separators remain visible without generated icon CSS",
expect(html).not.toContain("icon-[lucide--chevron-right]");
});
test("stats bar desktop gutters align its surface with container content", () => {
const source = readFileSync(uiComponentPath("StatsBar"), "utf8");
expect(source).toMatch(
/data-gutter="md"[^}]+width: min\(calc\(100% - 4rem\), 80rem\)/s,
);
expect(source).toMatch(
/data-gutter="lg"[^}]+width: min\(calc\(100% - 6rem\), 80rem\)/s,
);
});
test("mega menu bridges the gap between its trigger and panel", async () => {
const source = readFileSync(uiComponentPath("MegaMenu"), "utf8");
/*