feat: port the demo redesign with Manage and Settings tabs

This commit is contained in:
LukeGus committed 2026-10-05 16:23:21 -05:00
1 parent f8151cb885
commit 35c954b79a
128 files changed
+13262 -8143

No files matched your search

@@ -0,0 +1,19 @@
import { describe, expect, it } from "vitest";
import { masonryColumns } from "@/components/card-masonry";
describe("masonryColumns", () => {
it("stacks into one column when narrow", () => {
expect(masonryColumns(400, 4)).toBe(1);
});
it("grows with the container up to the preference", () => {
expect(masonryColumns(700, 3)).toBe(2);
expect(masonryColumns(1000, 3)).toBe(3);
expect(masonryColumns(1300, 3)).toBe(3);
expect(masonryColumns(1300, 4)).toBe(4);
});
it("falls back to three for an unknown preference", () => {
expect(masonryColumns(1300, 9)).toBe(3);
});
});