fix(grid): prevent toolbar overlap

This commit is contained in:
t8y2
2026-05-22 01:48:26 +08:00
parent 612c6d36db
commit 2150443bda
2 changed files with 15 additions and 1 deletions
@@ -0,0 +1,10 @@
import { readFileSync } from "node:fs";
import { strict as assert } from "node:assert";
import test from "node:test";
const source = readFileSync("apps/desktop/src/components/grid/DataGrid.vue", "utf8");
test("data grid toolbar keeps a minimum content width", () => {
assert.match(source, /class="data-grid-topbar flex items-stretch/);
assert.match(source, /\.data-grid-topbar\s*\{\s*min-width: 760px;/s);
});