mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
feat(quota): 2-column responsive grid for pool cards
This commit is contained in:
@@ -282,7 +282,7 @@ export default function QuotaSharePageClient() {
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-3">
|
||||
{pools.map((pool) => (
|
||||
<PoolCardWithUsage
|
||||
key={pool.id}
|
||||
|
||||
12
tests/unit/quota-share-grid.test.ts
Normal file
12
tests/unit/quota-share-grid.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
test("pool list uses a responsive 2-column grid", () => {
|
||||
const p = join(fileURLToPath(import.meta.url), "..", "..", "..",
|
||||
"src/app/(dashboard)/dashboard/costs/quota-share/QuotaSharePageClient.tsx");
|
||||
const src = readFileSync(p, "utf8");
|
||||
assert.ok(/grid-cols-1\s+lg:grid-cols-2/.test(src), "pool list must be a responsive 2-col grid");
|
||||
});
|
||||
Reference in New Issue
Block a user