fix(需求池): 优化待评审操作列展示

This commit is contained in:
2026-07-06 17:51:59 +08:00
parent 262ee58b6c
commit a129edd9a4
3 changed files with 59 additions and 14 deletions

View File

@@ -19,6 +19,16 @@ test('uses fixed table layout without horizontal scrolling for requirement list'
assert.equal(totalWidth, 100);
});
test('reserves enough width for pending-review row actions without horizontal scrolling', () => {
const sourceColumnWidth = REQUIREMENT_TABLE_COLUMN_WIDTHS[2];
const creatorColumnWidth = REQUIREMENT_TABLE_COLUMN_WIDTHS[9];
const actionColumnWidth = REQUIREMENT_TABLE_COLUMN_WIDTHS[11];
assert.ok(sourceColumnWidth <= 10);
assert.ok(creatorColumnWidth <= 4);
assert.ok(actionColumnWidth >= 20);
});
test('keeps requirement table headers on one line', () => {
assert.match(REQUIREMENT_TABLE_HEADER_CELL_CLASS, /\bwhitespace-nowrap\b/);
});