mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
chore: split dashboard quick actions into quarters and drop host status row lines
This commit is contained in:
1 parent
46b3adeb57
commit
dbf6c0117f
3 files changed
+78
-31
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { quarterBorders } from "@/dashboard/quarter-borders";
|
||||
|
||||
describe("quarterBorders", () => {
|
||||
it("draws a cross between four cells", () => {
|
||||
expect([0, 1, 2, 3].map((i) => quarterBorders(i, 4))).toEqual([
|
||||
"border-border border-b sm:border-r",
|
||||
"border-border border-b",
|
||||
"border-border border-b sm:border-b-0 sm:border-r",
|
||||
"border-border sm:border-b-0",
|
||||
]);
|
||||
});
|
||||
|
||||
it("stretches an odd last cell across the row", () => {
|
||||
expect(quarterBorders(2, 3)).toBe(
|
||||
"border-border sm:border-b-0 sm:col-span-2",
|
||||
);
|
||||
expect(quarterBorders(1, 3)).toBe("border-border border-b");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user