diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index 2e70ab92b..9a70dc1b7 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -5250,6 +5250,10 @@ body .row.agent .ag-prefs .row.pref .who { display: block; } .editor .prov-prefs .row.pref { display: grid; grid-template-columns: minmax(min(40%, 9em), 1fr) auto; align-items: start; min-height: 0; padding: 0; gap: 2px 12px; border: 0; } .editor .prov-prefs .row.pref[hidden] { display: none; } .editor .prov-prefs .row.pref > .who { display: contents; } +/* so the row holds the line kept out of sight (.who has no box to): held + against the dialog it sat under the editor's scroll, and the dialog grew + a second scrollbar beside the editor's, the rows 8px narrower in WebKit */ +.editor .prov-prefs .row.pref { position: relative; } .editor .prov-prefs .row.pref > .who > * { grid-column: 1 / -1; } .editor .prov-prefs .row.pref > .who > .name { grid-column: 1; grid-row: 1; } .editor .prov-prefs .row.pref > :not(.who) { grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; margin-left: 0; } diff --git a/internal/gui/tests/account-weight.test.cjs b/internal/gui/tests/account-weight.test.cjs index a0f0c58d5..2665341ba 100644 --- a/internal/gui/tests/account-weight.test.cjs +++ b/internal/gui/tests/account-weight.test.cjs @@ -133,6 +133,13 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", // back to Smart hides them await page.locator(".editor").getByRole("button", { name: await say(page, lang, "Smart"), exact: true }).first().click(); assert.equal(await chip("max@example.com").isVisible(), false, `${at}: a weight under Smart`); + // Advanced open, as a user may have it + { const adv = page.locator(".editor details.advanced"); await adv.waitFor({ state: "attached" }); if (!(await adv.evaluate((d) => d.open))) await adv.locator(":scope > summary").click(); } + // open, the editor scrolls and the dialog around it doesn't: the lines + // its check-in and warm-up rows keep out of sight were held against + // the dialog and grew it a second scrollbar, every row 8px narrower + const dialog = await page.evaluate(() => { const d = document.querySelector(".dialog"); return [d.scrollHeight, d.clientHeight]; }); + assert.ok(dialog[0] <= dialog[1] + 1, `${at}: the dialog scrolls beside the editor (${dialog})`); assert.deepEqual(errors, [], at); await context.close(); }