diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index ddeb1e3c6..7e37e5cf0 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -5152,6 +5152,6 @@ body .row.agent .ag-prefs .row.pref .who { display: block; } .sess-pick.led-more svg { transform: none; } .sess-tools .led-rename { flex: none; width: 180px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12px; } /* Settings › About › Open-source licenses: the notices, as written */ -.notices-text { margin: 0; font: 11px/1.5 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; } +.notices-text { grid-column: 1 / -1; min-width: 0; margin: 0; font: 11px/1.5 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; } .client-cert { display: grid; gap: 6px; min-width: 0; } .client-cert input { width: 100%; min-width: 0; } diff --git a/internal/gui/tests/about-notices.test.cjs b/internal/gui/tests/about-notices.test.cjs index 9958e0b6b..eecb32913 100644 --- a/internal/gui/tests/about-notices.test.cjs +++ b/internal/gui/tests/about-notices.test.cjs @@ -42,6 +42,12 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", return { inside: d.right <= innerWidth && d.bottom <= innerHeight, scrolls: body.scrollHeight > body.clientHeight, wide: document.documentElement.scrollWidth <= innerWidth }; }); assert.deepEqual(fits, { inside: true, scrolls: true, wide: true }); + // the text takes the dialog's whole width, not the editor grid's narrow first column + const span = await page.evaluate(() => { + const p = document.querySelector("#modal .notices-text").getBoundingClientRect(), b = document.querySelector("#modal .ebody").getBoundingClientRect(); + return p.width / b.width; + }); + assert.ok(span > 0.85, `the notices take ${Math.round(span * 100)}% of the dialog's width`); await page.locator("#modal .bar button.primary").click(); await page.locator("#modal").waitFor({ state: "hidden" }); assert.deepEqual(errors, []);