diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index dc82ed909..297044555 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -4045,6 +4045,11 @@ input.words.compact-num { flex: none; width: 76px; font-variant-numeric: tabular :is(#view-settings:not(.set-searching), .editor.roomy .prov-prefs) .row.pref > .who > .sub:not(.err, .bad, .say, .proxy-check, .lib-way, .image-gen-hidden, .sync-sign-in, .no-names, .pv-hits, .feat-why, .vision-not-marked, .video-gen-how, .font-note, .acts, [role="status"], #proxySub):not(#otelSessionsRow *, #allowList *, .disabled-model *) { --hint: 1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } + /* the line held out of sight stays in its row's box: placed against the + page it sat at the window's top-left, and a row opened far down + (Sessions' Settings ›, scrolled to in Privacy) scrolled the whole page + to reach it, the header off the top (kalicyh on X) */ + :is(#view-settings, .editor.roomy .prov-prefs) .row.pref:not(.lan-address-row) > .who { position: relative; } /* a row left with its name alone is as tall as any other: its control (a switch, a field, a shortcut) no longer sets it apart */ #view-settings .row.pref:not(.feat-set) { box-sizing: content-box; min-height: 27px; } /* 51 with its padding, a line above it outside */ diff --git a/internal/gui/tests/sessions-to-settings.test.cjs b/internal/gui/tests/sessions-to-settings.test.cjs index 67f0189c7..d7a70ab18 100644 --- a/internal/gui/tests/sessions-to-settings.test.cjs +++ b/internal/gui/tests/sessions-to-settings.test.cjs @@ -75,6 +75,14 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", } await go.click(); await page.locator("#view-settings #sessionReadsList .row.flash").first().waitFor(); + // the page stays where it is: Settings' held-out lines sat against the + // window, so reaching the row scrolled the whole page and cut its top + // off (kalicyh on X) + await page.waitForTimeout(600); + const place = await page.evaluate(() => ({ doc: document.scrollingElement.scrollTop, top: document.querySelector("#view-settings").getBoundingClientRect().top, tall: document.documentElement.scrollHeight - innerHeight })); + assert.equal(place.doc, 0, "the window itself is not scrolled"); + assert(place.top >= 0, "Settings starts inside the window"); + assert(place.tall <= 1, "nothing of Settings runs past the window"); const back = page.locator("#navBack"); await back.waitFor(); await back.click();