feat(web): 列表自适应布局并将分页固定页脚
数据源与查询列表整页不滚、仅表体内滚;名称筛选去掉「模糊」占位后缀。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c1da6d7c3a
commit
be63e2fe5d
11 files changed
+314
-271
No files matched your search
@@ -516,8 +516,14 @@ test.describe("queries console", () => {
|
||||
|
||||
const create = (await page.getByTestId("query-create").boundingBox())!;
|
||||
const box = (await table.boundingBox())!;
|
||||
const pager = (await page.getByTestId("query-pagination").boundingBox())!;
|
||||
expect(create.y + create.height).toBeLessThanOrEqual(box.y);
|
||||
expect(create.x + create.width).toBeGreaterThan(box.x + box.width - 40);
|
||||
expect(pager.y).toBeGreaterThanOrEqual(box.y + box.height - 2);
|
||||
const listScrolls = await page
|
||||
.getByTestId("query-list")
|
||||
.evaluate((el) => el.scrollHeight > el.clientHeight + 1);
|
||||
expect(listScrolls).toBe(false);
|
||||
await expect(page.getByTestId("query-footer")).toHaveCount(0);
|
||||
|
||||
await expect(page.getByTestId("query-list-toolbar")).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user