Einheitliche Tabellenkopf-Groesse app-weit
Docker Image / test (push) Successful in 1m26s
Docker Image / image (push) Successful in 33s

This commit is contained in:
loki committed 2026-10-12 00:12:50 +02:00
1 parent 2f1c2d786b
commit dbd006a22c
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
import { readFileSync } from "node:fs";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, test } from "vitest";
const css = readFileSync(
join(dirname(fileURLToPath(import.meta.url)), "globals.css"),
"utf8",
);
describe("einheitliche Tabellenköpfe", () => {
test("gemeinsame Kopfgröße für Daten-Tabellen", () => {
expect(css).toContain("--table-head-size: 0.95rem");
for (const selector of [
".users-table thead th",
".team-matrix thead th",
".compare-table thead th",
]) {
const block = css.slice(css.indexOf(selector));
const rule = block.slice(0, block.indexOf("}"));
expect(rule).toContain("var(--table-head-size)");
}
});
});