fix(gui): a file picker's grid runs down to its button bar (#4750)

This commit is contained in:
Nariman Jelveh authored and GitHub committed 2026-11-21 15:21:56 -07:00
1 parent 9fba208387
commit d0a75e3b2e
2 files changed
+8 -2

No files matched your search

+4 -2
View File
@@ -12418,8 +12418,10 @@ span[data-avatar-user] > .avatar-picture {
}
}
/* No footer under the listing here. */
.file-picker .files {
/* No footer under the listing here. The Files tab's grids clear its footer
with a rule of their own, which this has to outrank. */
.file-picker .files,
.dashboard-section-files.file-picker .files-tab .files.files-grid-view {
margin-bottom: 0;
}
@@ -233,6 +233,10 @@ test.describe('file pickers (env=app)', () => {
await expect(picker.locator('.files')).toHaveClass(/files-grid-view/);
await expect(row(picker, FOLDER)).toBeVisible();
// The grid runs down to the button bar: a picker has no footer to clear.
const gap = await picker.evaluate(el => el.querySelector('.window-filedialog-prompt').getBoundingClientRect().top
- el.querySelector('.files').getBoundingClientRect().bottom);
expect(gap).toBe(0);
});
test('Escape cancels the picker', async ({ page }) => {