fix(ui): align stats surface within max width
This commit is contained in:
@@ -3196,12 +3196,9 @@ test("breadcrumb default separators remain visible without generated icon CSS",
|
||||
|
||||
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,
|
||||
);
|
||||
expect(source).toContain("--stats-max-width: 80rem");
|
||||
expect(source).toContain("--stats-gutter-width: 4rem");
|
||||
expect(source).toContain("calc(var(--stats-max-width) - var(--stats-gutter-width))");
|
||||
});
|
||||
|
||||
test("mega menu bridges the gap between its trigger and panel", async () => {
|
||||
|
||||
Reference in New Issue
Block a user