Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
gui: a page's bar room comes out of its right padding, so both sides match
yetone2ff85f8a2bc3
diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.cssindex 2ee34e8ff..f09edeed3 100644--- a/internal/gui/assets/app.css+++ b/internal/gui/assets/app.css@@ -535,7 +535,11 @@ body:not(.side-nav) .side-toggle .st-pane { opacity: 0; }window's height WebKit laid the page out at the full width under thebar and, on each redraw, 8px narrower for a few frames (@LingYi_Stu onX) */-.view { flex: 1; min-height: 0; overflow-y: scroll; padding: 0 12px 4px; display: flex; flex-direction: column; animation: view-in .24s var(--ease); }+/* the bar's room comes out of the right padding, so a page's sides stay+ the same width. Its width depends on the engine and the system, so+ layout.js measures it into --bar, again on a resize (a text-size zoom+ comes as one) */+.view { flex: 1; min-height: 0; overflow-y: scroll; padding: 0 max(0px, calc(12px - var(--bar, 0px))) 4px 12px; display: flex; flex-direction: column; animation: view-in .24s var(--ease); }/* a box that scrolls in a page, marked by app.js while it overflows: thewheel at its ends stays with it (contain keeps the Mac's bounce on it).Only then: Chromium holds the wheel even in a box that doesn't overflow.@@ -543,13 +547,13 @@ body:not(.side-nav) .side-toggle .st-pane { opacity: 0; }:where(.holds) { overscroll-behavior-y: contain; }@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }@media (prefers-reduced-motion: reduce) { .view { animation-name: fade-in; } }-body.window .view { padding: 2px 16px 8px; }+body.window .view { padding: 2px max(0px, calc(16px - var(--bar, 0px))) 8px 16px; }/* every page keeps to a width the eye can follow across, centred in amaximized window, rather than its name at one edge and its switch at theother (#860); Routing, Usage and Sessions too, so a large screen doesn'tstretch them alone edge to edge while the others sit in the middle (面条 onDiscord): their tables and charts lay out by the room they get */-body.window :is(#view-agents, #view-sessions, #view-providers, #view-routing, #view-gateway, #view-usage, #view-library, #view-plugins, #view-settings) { padding-left: max(16px, calc(50% - 600px)); padding-right: max(16px, calc(50% - 600px)); }+body.window :is(#view-agents, #view-sessions, #view-providers, #view-routing, #view-gateway, #view-usage, #view-library, #view-plugins, #view-settings) { padding-left: max(16px, calc(50% - 600px)); padding-right: max(0px, calc(max(16px, calc(50% - 600px)) - var(--bar, 0px))); }/* a view takes focus (tabIndex -1) only so the keys scroll it after a click;a ring round the whole list there marks nothing a reader can act on (#1601) */.view:focus { outline: none; }@@ -2865,7 +2869,7 @@ body.window .ag-sk-icon { width: 22px; height: 22px; border-radius: 6px; }in the content box (a negative margin-end was sideways scroll in macOS15's WebKit: see .lib-head, #1236) */#view-providers .after-list { position: sticky; bottom: -8px; z-index: 2; margin: 0 0 -8px; padding: 14px 4px 12px; transition: opacity .18s ease, visibility 0s; }-#view-providers .after-list::before { content: ""; position: absolute; z-index: -1; inset: 0 -12px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg) 12px); }+#view-providers .after-list::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--bar, 0px) - 12px) 0 -12px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg) 12px); } /* the bar's room is out of the padding *//* stepping aside it fades, then goes; back, it is there at once, so thefocus can go to it as the sheet closes */#view-providers .after-list.away { opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }@@ -3330,7 +3334,7 @@ body:not(.side-nav) #view-settings .set-head { position: sticky; top: 0; z-indexbody.window:not(.side-nav) #view-settings .set-head { top: -2px; --bleed-l: 16px; --bleed-r: 16px; }body:not(.side-nav) #view-settings .set-head::before {content: ""; position: absolute; z-index: -1; pointer-events: none;- top: -6px; bottom: -6px; left: calc(-1 * var(--bleed-l)); right: calc(-1 * var(--bleed-r));+ top: -6px; bottom: -6px; left: calc(-1 * var(--bleed-l)); right: calc(var(--bar, 0px) - var(--bleed-r));background: color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);box-shadow: 0 1px 0 transparent; transition: box-shadow .18s var(--ease);@@ -3770,7 +3774,7 @@ body.panel .modal { padding: 16px 12px; }body.web .view {--view-left: max(12px, env(safe-area-inset-left));--view-right: max(12px, env(safe-area-inset-right));- padding: 2px var(--view-right) 12px var(--view-left);+ padding: 2px max(0px, calc(var(--view-right) - var(--bar, 0px))) 12px var(--view-left);}body.web .foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); min-width: 0; }body.web .foot .status { min-width: 0; overflow-wrap: anywhere; }diff --git a/internal/gui/assets/layout.js b/internal/gui/assets/layout.jsindex 6de88575b..787a6d870 100644--- a/internal/gui/assets/layout.js+++ b/internal/gui/assets/layout.js@@ -15,4 +15,8 @@if (!web && /^Mac/.test(navigator.platform)) document.body.classList.add("mac");if (!web && /^Linux/.test(navigator.platform)) document.body.classList.add("linux");if (/^Win/.test(navigator.platform)) document.documentElement.classList.add("win");+ // --bar: see app.css, .view+ function bar() { var p = document.createElement("div"); p.className = "view"; p.style.cssText = "position:absolute;visibility:hidden;height:9px"; document.body.appendChild(p); document.documentElement.style.setProperty("--bar", p.offsetWidth - p.clientWidth + "px"); p.remove(); }+ bar();+ addEventListener("resize", bar);})();diff --git a/internal/gui/assets/plugins/library/library.css b/internal/gui/assets/plugins/library/library.cssindex 87d4e1043..89c07c693 100644--- a/internal/gui/assets/plugins/library/library.css+++ b/internal/gui/assets/plugins/library/library.css@@ -15,7 +15,7 @@}.lib-head::before {content: ""; position: absolute; z-index: -1; pointer-events: none;- top: 0; bottom: 0; left: calc(-1 * var(--bleed-l)); right: calc(-1 * var(--bleed-r));+ top: 0; bottom: 0; left: calc(-1 * var(--bleed-l)); right: calc(var(--bar, 0px) - var(--bleed-r)); /* the bar's room is out of the padding */background: color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);box-shadow: 0 1px 0 transparent; transition: box-shadow .18s var(--ease);diff --git a/internal/gui/assets/plugins/redact/redact.css b/internal/gui/assets/plugins/redact/redact.cssindex a264f7271..ee95e3554 100644--- a/internal/gui/assets/plugins/redact/redact.css+++ b/internal/gui/assets/plugins/redact/redact.css@@ -148,12 +148,12 @@scrolls under them, on the frosted strip Settings' head has */.msk-onebar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 28px; }.msk-onebar::before {- content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -6px -12px;+ content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -6px calc(var(--bar, 0px) - 12px) -6px -12px; /* the bar's room is out of the padding */background: color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);}body.window .msk-onebar { top: -2px; }-body.window .msk-onebar::before { inset: -6px -16px; }+body.window .msk-onebar::before { inset: -6px calc(var(--bar, 0px) - 16px) -6px -16px; }.msk-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; }.msk-crumb { color: var(--faint); }.msk-when { font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }diff --git a/internal/gui/core_budget_test.go b/internal/gui/core_budget_test.goindex 1eea1fed2..7748be21d 100644--- a/internal/gui/core_budget_test.go+++ b/internal/gui/core_budget_test.go@@ -16,7 +16,7 @@ import (// raises them and says why in its commit.const (appScriptBudget = 1_311_681 // app.js: 1,198,239 after Usage left (P2); 1,218,098 with the 10-15 fixes to pages still in the core; 1,232,466 with the provider editor's Advanced fold and every dialog holding its place, the core's own (10-16); 1,250,533 with the quota refresh kept through redraws, the core's own since the tray panel draws it too, plus 1.5% (#2397); 1,269,083 with Free first's option in the provider editor's ROUTINGS, which the Routing page reads too, plus 1.5%; 1,272,726 with the Providers page drawing its last list at once (#1519), the core's page, and the Routing trace's account names read without Object.entries (#1481), plus 1.5%; a dialog growing out of the row that opened it and folding back into it, the core's own since every page's dialogs open through it (10-20); Codex's and Claude Code's own settings moved from Settings into the agent's row on the Agents page, the core's own since the tray panel and the window both draw them (10-20); 1,314,432 with Settings › Privacy's record of what was masked (its summary, the records view and the local model's controls), which belongs to Settings, the core's own, plus 1.5%; 1,336,481 with a provider's Names & levels saying Provider in model names is Settings' and opening it there (joe), and Settings' Image recognition saying where a custom provider's model is marked (nexnull), both in the core's own pages, with no room added (10-23); 1,337,633 with Settings › Models › Replies' Intent classifier timeout (#2934, reyoung), Settings' own row, drawn by waitRow, which the Image generation timeout's row now shares, with no room added; 1,337,735 with the provider editor's link naming a partner's page by its own host (siteHost) instead of usemagpie.ai's /go link, the core's own editor, with no room added (10-23); 1,338,084 with Check in now saying what the press came to (claimed +credits, already today, not available yet) where it said "refreshed" (#3326), the check-in row the tray panel draws too, the core's own, with no room added (10-23); 1,338,929 with a new partner's tile keeping a small dot until it is opened, in the add sheet, the core's own, with no room added (10-23); 1,343,324 with the sidebar's open-page row marked by one shape that moves on a spring (navTopGo), the window's own shell, which every page sits beside, with no room added (10-23); 1,343,465 with a dialog kept centred while its content comes in, until it is pressed (holdModal, every page's dialogs), the core's own, with no room added (10-24); 1,317,486 with what masking did moved out to Insights › Masking (plugins/redact), the budget lowered to it (10-24); 1,321,336 with Codex's one subagent model, its card's square saying plainly what each choice does and a row with a name in its sheet, where two squares read alike (the owner), the Agents page's, which the tray panel draws too, the core's own, with no room added (10-24); 1,321,424 with Settings › Models' Image generation MCP server row beside Image recognition's (JonahFu on X), the two drawn by one helper (mcpRow), Settings' own, with no room added (10-25); 1,321,994 with a provider of the user's set never to rest for a limit (zoecats), the provider editor's Advanced row, the core's own editor, with no room added (10-25); 1,322,289 with Settings › Privacy's Keep a key's form under Mask secrets (Charles Cao on X), Settings' own row, with no room added (10-25); 1,322,537 with no Codex squares beside its named settings rows (the owner), with no room added (10-25); 1,323,401 with the tray panel drawing its last allowances at once and asking for them beside the state (#3160, #3134), the tray panel's, the core's own, and the 4 bytes 84c50f032 added, with no room added (10-25); 1,326,105 with many releases' notes merged into one list by kind, each line with its version (the owner), in the update sheet and What's new, with no room added (10-25); 1,321,319 with Settings › Observability moved out to its plugin (plugins/otel/page.js) and its Langfuse setup there (an X user), the budget lowered to it (10-26); a quota card whose window is used but names no reset no longer saying "Not used yet" (windy on Discord) raised it to 1,321,347, and back to 1,321,319 with Settings' model pickers sharing one row helper (modelOpt) where six kept their own copy, no raise (10-26); 1,325,845 with every slow page's skeletons getting magpie's bird hopping bar to bar (skelBird, the owner after the Plugins page's README), one bird for the window over whatever page or dialog is loading, the core's own, with no room added (10-26); 1,310,129 with Settings › Network and sharing's gateway rows (its port, bare ids, local network, allowed addresses, web pages) moved out to the gateway plugin (plugins/gateway/settings.js), the budget lowered to it (10-27); 1,310,269 with Test models naming the first model that failed and its error in the status line, where it said only how many (ysm119 on Discord), the provider editor's, the core's own, with no room added (10-27); 1,310,460 with Settings › About's Website row linking usemagpie.ai (the owner), Settings' own row, with no room added (10-27); 1,309,669 with a pool's Stop at the caps and Check usage near a cap ticks under a provider's accounts (plugins#349), the core's own editor, its account rows' Remove and add rows each drawn by one helper (forgetOf, addRow), with no room added (10-28); 1,311,681 with Install another agent on the Agents page naming the agents Plugins has (More in Plugins) and opening Plugins at its Agents (the owner), the Agents page's, the core's own, with no room added (10-28)- coreScriptBudget = 1_530_449 // every core script: 1,358,034 after Usage left; 1,380,003 with them; 1,405,937 with the fold; 1,426,102 with 10-16's core work (the GitHub list loading, the move to plugins, Settings › Long conversations), plus 1.5% (#2612); 1,447,368 with loadBack, the window's one state read per return, which every page needs and so is the core's own (1,446,845 before it, 155 bytes under), plus 1.5%; OpenCode Zen's card saying OpenCode tells no key its balance adds ~390 bytes inside it; 1,472,589 with the dialog that grows out of its row and the agents' own settings in their rows, on main's 10-20 core work (the Providers page's last list, the Routing trace's names), plus 1.5% (10-20); 1,506,192 with Settings › Privacy's record of what was masked, plus 1.5%; 1,529,393 with the Intent classifier timeout row (#2934), with no room added; 1,529,495 with the editor's partner link host, with no room added; 1,529,844 with Check in now's press summary (#3326), with no room added; 1,530,689 with the new partner tile's dot, with no room added; 1,535,084 with the sidebar's spring, with no room added; 1,549,478 with the context window card's map (tiles by tokens, the default look, the block grid a switch away) and its text view showing an inline image, in context.js, which the Routing page draws as well as Usage, so the core's own, with no room added (10-24); 1,550,768 with a usage card's refresh opening after its text (#840's card, which the tray panel draws too), the Add key spinner, and a dialog kept centred while its content comes in, with no room added (10-24); 1,524,789 with what masking did moved out to Insights › Masking, lowered to it; 1,528,525 with Codex's one subagent model, with no room added (10-24); 1,528,972 with the Image generation MCP server row (JonahFu on X), with no room added (10-25); 1,529,542 with the limit-rest row (zoecats), with no room added (10-25); 1,529,837 with Keep a key's form (Charles Cao on X), with no room added (10-25); 1,530,050 with no Codex squares beside its named settings rows (the owner), with no room added (10-25); 1,530,631 with a plugin's page growing to its README on the dialog's spring instead of in one jump (the owner), the Plugins page's, in plugins.js, with no room added (10-25); 1,533,445 with the context map counting its tokens on as a live request grows, a tile pointed at keeping its tip, a tool's gathered results saying how many and the small files their folder (the owner, after flohoeller's map on X), in context.js, which the Routing page draws as well as Usage, and the 4 bytes 84c50f032 added to app.js (Settings' Version row) without a raise, with no room added (10-25); 1,534,312 with the tray panel's last allowances drawn at once (#3160, #3134), with no room added (10-25); 1,537,016 with many releases' notes merged into one list by kind (the owner), in app.js, with no room added (10-25); 1,542,244 with a plugin's README loading under magpie's bird bouncing down its lines instead of pulsing bars (the owner), the Plugins page's, in plugins.js, with no room added (10-26); 1,542,418 with a page plugin's sidebar tab coming and going as it is installed, switched on or off, or removed, instead of on the Plugins page's next load (the owner), in plugins.js, with no room added (10-26); 1,537,645 with Settings › Observability moved out to plugins/otel, lowered to it (10-26); 1,537,673 with a used window with no reset not "Not used yet" (windy on Discord), and back to 1,537,645 with Settings' model pickers sharing modelOpt (10-26); 1,541,967 with every slow page's skeletons getting magpie's bird (skelBird, the owner), in app.js, the README's bird sharing its drawing and styles, with no room added (10-26); 1,526,251 with Settings' gateway rows moved out to plugins/gateway/settings.js, lowered to it (10-27); 1,526,391 with Test models naming the first failed model and its error (ysm119 on Discord), in app.js, with no room added (10-27); 1,526,556 with About's Website row (the owner), in app.js, with no room added (10-27); 1,526,500 with a pool's cap ticks (plugins#349), in app.js, with no room added (10-28); 1,527,245 with About's Open-source licenses row and dialog (the owner), in app.js, with no room added (10-28); 1,528,076 with the Partners heading's light (the owner), in app.js, with no room added (10-28); 1,530,449 with Install another agent's More in Plugins row (the owner), in app.js, and Plugins opening at its Agents, in plugins.js, with no room added (10-28)+ coreScriptBudget = 1_530_807 // every core script: 1,358,034 after Usage left; 1,380,003 with them; 1,405,937 with the fold; 1,426,102 with 10-16's core work (the GitHub list loading, the move to plugins, Settings › Long conversations), plus 1.5% (#2612); 1,447,368 with loadBack, the window's one state read per return, which every page needs and so is the core's own (1,446,845 before it, 155 bytes under), plus 1.5%; OpenCode Zen's card saying OpenCode tells no key its balance adds ~390 bytes inside it; 1,472,589 with the dialog that grows out of its row and the agents' own settings in their rows, on main's 10-20 core work (the Providers page's last list, the Routing trace's names), plus 1.5% (10-20); 1,506,192 with Settings › Privacy's record of what was masked, plus 1.5%; 1,529,393 with the Intent classifier timeout row (#2934), with no room added; 1,529,495 with the editor's partner link host, with no room added; 1,529,844 with Check in now's press summary (#3326), with no room added; 1,530,689 with the new partner tile's dot, with no room added; 1,535,084 with the sidebar's spring, with no room added; 1,549,478 with the context window card's map (tiles by tokens, the default look, the block grid a switch away) and its text view showing an inline image, in context.js, which the Routing page draws as well as Usage, so the core's own, with no room added (10-24); 1,550,768 with a usage card's refresh opening after its text (#840's card, which the tray panel draws too), the Add key spinner, and a dialog kept centred while its content comes in, with no room added (10-24); 1,524,789 with what masking did moved out to Insights › Masking, lowered to it; 1,528,525 with Codex's one subagent model, with no room added (10-24); 1,528,972 with the Image generation MCP server row (JonahFu on X), with no room added (10-25); 1,529,542 with the limit-rest row (zoecats), with no room added (10-25); 1,529,837 with Keep a key's form (Charles Cao on X), with no room added (10-25); 1,530,050 with no Codex squares beside its named settings rows (the owner), with no room added (10-25); 1,530,631 with a plugin's page growing to its README on the dialog's spring instead of in one jump (the owner), the Plugins page's, in plugins.js, with no room added (10-25); 1,533,445 with the context map counting its tokens on as a live request grows, a tile pointed at keeping its tip, a tool's gathered results saying how many and the small files their folder (the owner, after flohoeller's map on X), in context.js, which the Routing page draws as well as Usage, and the 4 bytes 84c50f032 added to app.js (Settings' Version row) without a raise, with no room added (10-25); 1,534,312 with the tray panel's last allowances drawn at once (#3160, #3134), with no room added (10-25); 1,537,016 with many releases' notes merged into one list by kind (the owner), in app.js, with no room added (10-25); 1,542,244 with a plugin's README loading under magpie's bird bouncing down its lines instead of pulsing bars (the owner), the Plugins page's, in plugins.js, with no room added (10-26); 1,542,418 with a page plugin's sidebar tab coming and going as it is installed, switched on or off, or removed, instead of on the Plugins page's next load (the owner), in plugins.js, with no room added (10-26); 1,537,645 with Settings › Observability moved out to plugins/otel, lowered to it (10-26); 1,537,673 with a used window with no reset not "Not used yet" (windy on Discord), and back to 1,537,645 with Settings' model pickers sharing modelOpt (10-26); 1,541,967 with every slow page's skeletons getting magpie's bird (skelBird, the owner), in app.js, the README's bird sharing its drawing and styles, with no room added (10-26); 1,526,251 with Settings' gateway rows moved out to plugins/gateway/settings.js, lowered to it (10-27); 1,526,391 with Test models naming the first failed model and its error (ysm119 on Discord), in app.js, with no room added (10-27); 1,526,556 with About's Website row (the owner), in app.js, with no room added (10-27); 1,526,500 with a pool's cap ticks (plugins#349), in app.js, with no room added (10-28); 1,527,245 with About's Open-source licenses row and dialog (the owner), in app.js, with no room added (10-28); 1,528,076 with the Partners heading's light (the owner), in app.js, with no room added (10-28); 1,530,449 with Install another agent's More in Plugins row (the owner), in app.js, and Plugins opening at its Agents, in plugins.js, with no room added (10-28); 1,530,807 with layout.js measuring the scrollbar into --bar, which every page's right padding takes off so its sides match (the owner), the window's own shell, with no room added (10-28))func TestCoreScriptBudget(t *testing.T) {diff --git a/internal/gui/tests/page-width-steady.test.cjs b/internal/gui/tests/page-width-steady.test.cjsindex 63ee65c24..6edc114ab 100644--- a/internal/gui/tests/page-width-steady.test.cjs+++ b/internal/gui/tests/page-width-steady.test.cjs@@ -9,6 +9,9 @@// default), and both engines draw the app's own thin bar, as the app does:// the Mac's 8px one and, with the platform said to be Windows, the 10px// one Windows and Linux get. A dialog's fields keep their bar's room too.+// The bar's room comes out of the right padding (the owner: does the+// clear bar make the sides uneven?), so the content sits as far from the+// window's right edge, bar and all, as from its left.const assert = require("node:assert/strict");const fs = require("node:fs/promises");const path = require("node:path");@@ -60,10 +63,11 @@ const onPlatform = async (browser, platform, viewport) => {for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) for (const platform of ["MacIntel", "Win32"]) {const launch = () => (engine === "webkit" ? webkit.launch() : chromium.launch({ channel: "chromium", ignoreDefaultArgs: ["--hide-scrollbars"] }));- test(`${engine} ${platform}: no page narrows when it grows past the window`, async (t) => {+ // 1600 wide, the pages that centre their content have more than 16px a side+ for (const width of [1100, 1600]) test(`${engine} ${platform} ${width}: no page narrows when it grows past the window`, async (t) => {const browser = await launch();t.after(() => browser.close());- const page = await onPlatform(browser, platform, { width: 1100, height: 700 });+ const page = await onPlatform(browser, platform, { width, height: 700 });page.setDefaultTimeout(6000);await page.route("**/*", serve("en"));await page.goto("http://magpie.test/?view=agents");@@ -75,6 +79,13 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",const before = await shown(page).catch(() => null);if (!before || before.id !== `view-${id}`) continue; // a page this fixture doesn't opentried++;+ const sides = await page.evaluate((vid) => {+ const v = document.getElementById(vid), cs = getComputedStyle(v), bar = v.offsetWidth - v.clientWidth;+ return { left: parseFloat(cs.paddingLeft), right: parseFloat(cs.paddingRight) + bar, bar, wide: v.scrollWidth > v.clientWidth + 1 };+ }, before.id);+ assert(sides.bar > 0, `${id}: the page keeps its bar's room`);+ assert(Math.abs(sides.left - sides.right) <= 0.5, `${id}: ${sides.left}px on the left, ${sides.right}px on the right (bar ${sides.bar}px)`);+ assert(!sides.wide, `${id}: the page scrolls sideways`);// whatever opens in it: a block taller than the window, then goneconst grown = await page.evaluate((vid) => {const v = document.getElementById(vid), b = document.createElement("div");diff --git a/internal/gui/tests/page-width.test.cjs b/internal/gui/tests/page-width.test.cjsindex 177dc08b6..a8faaef67 100644--- a/internal/gui/tests/page-width.test.cjs+++ b/internal/gui/tests/page-width.test.cjs@@ -38,7 +38,8 @@ const box = (page, v) => page.evaluate((v) => {const cs = getComputedStyle(e);const r = e.getBoundingClientRect();const pl = parseFloat(cs.paddingLeft), pr = parseFloat(cs.paddingRight);- return { left: Math.round(r.left + pl), width: Math.round(e.clientWidth - pl - pr), pl, pr };+ // pr is the right side's gap with the bar's room, which comes out of the padding+ return { left: Math.round(r.left + pl), width: Math.round(e.clientWidth - pl - pr), pl, pr: pr + e.offsetWidth - e.clientWidth };}, v);for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {