Panes: a covered pane peeks only with Shift or Control held, and a column is laid out again after a click on a peeking pane
A plain hover no longer peeks, so text being read does not jump and an edge stays put to be dragged. A click on a peeking pane laid its column out while the peek skewed the measurements; it is laid out again once the pane is back, so the active pane takes its full height. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
9dec4df1fd
commit
3f89c3cd2c
9 files changed
+302
-36
No files matched your search
+4
-1
@@ -349,7 +349,7 @@ test.describe("panes", () => {
|
||||
// A Shift-click on a row opens it in place of the pane there.
|
||||
await paneOf(page, "Tuning and temperament").locator(".row", { hasText: "The comma" }).click({ modifiers: ["Shift"] });
|
||||
await expect.poll(() => trail(page)).toEqual(["Tuning and temperament", "The comma"]);
|
||||
// Five panes in one column: a covered one peeks under the mouse; with room, a pane drags by its grip (the ⋯ beside it does not drag).
|
||||
// Five panes in one column: a covered one peeks under the mouse with Shift held; with room, a pane drags by its grip (the ⋯ beside it does not drag).
|
||||
await page.evaluate(() => localStorage.clear());
|
||||
await open(page);
|
||||
await keys(page, "z j Enter j Enter j Enter j Enter j Enter");
|
||||
@@ -359,7 +359,10 @@ test.describe("panes", () => {
|
||||
const covered = col.locator(":scope > .pane[data-covered]").first();
|
||||
await expect(covered).toHaveCount(1);
|
||||
await covered.locator(".tabline").hover();
|
||||
await page.keyboard.down("Shift");
|
||||
await expect(covered).toHaveAttribute("data-peek", "");
|
||||
await page.keyboard.up("Shift");
|
||||
await expect(covered).not.toHaveAttribute("data-peek", "");
|
||||
await page.mouse.move(5, 500);
|
||||
await page.setViewportSize({ width: 1920, height: 2000 });
|
||||
await expect.poll(() => col.getAttribute("class")).not.toContain("crowded");
|
||||
|
||||
Reference in new issue
Block a user