fix(需求池): 优化待评审操作列展示
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user