Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(view): phone tabs scale to fit a classic scrollbar [N26]
Corey Olson1dbbbb1096bc
diff --git a/src/view.css b/src/view.cssindex 1d19f764..986f3bea 100644--- a/src/view.css+++ b/src/view.css@@ -127,7 +127,9 @@ main { padding: 16px 18px 28px; }.group-need > code { grid-column: 2; }.group-need > span, .group-need > button { grid-column: 1 / -1; }.tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 0; }- .tab { display: grid; grid-template-rows: auto 13px; justify-items: center; align-content: center; padding: 7px 2px 5px; font-size: 13.5px; }+ /* Six labels share the bar, so they scale with the screen: 13.5px at 375, 11px at the narrowest, where a+ * classic scrollbar and wide fonts leave about 290px of bar. */+ .tab { display: grid; grid-template-rows: auto 13px; justify-items: center; align-content: center; padding: 7px 2px 5px; font-size: clamp(11px, 3.6vw, 13.5px); }.tab b { margin: 0; line-height: 13px; }}.primary { display: grid; gap: 12px; min-width: 0; }diff --git a/test/cockpit.test.js b/test/cockpit.test.jsindex 3bcef90a..86ae90be 100644--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@ -651,8 +651,13 @@ test('the view never scrolls sideways at 320px [N26]', { timeout: 120_000 }, asylet chrome;try {chrome = await openSnapshotChrome(executable, view.link.href, profile);- await chrome.send('Emulation.setDeviceMetricsOverride', { width: 320, height: 800, deviceScaleFactor: 1, mobile: false });- await chrome.waitFor('innerWidth === 320 && document.querySelectorAll("#chain .row").length === 2');+ await chrome.waitFor('document.querySelectorAll("#chain .row").length === 2');+ // This machine's fonts first, then a wide one (Verdana here, DejaVu Sans on Linux) at 320 and at 305,+ // the room a 320px screen leaves beside a classic 15px scrollbar: Linux CI measured 324px of tabs there.+ for (const [width, font] of [[320, ''], [320, 'Verdana, "DejaVu Sans", sans-serif'], [305, 'Verdana, "DejaVu Sans", sans-serif']]) {+ await chrome.send('Emulation.setDeviceMetricsOverride', { width, height: 800, deviceScaleFactor: 1, mobile: false });+ await chrome.evaluate(`document.documentElement.style.setProperty('--sans', ${JSON.stringify(font || 'system-ui, sans-serif')})`);+ await chrome.waitFor(`innerWidth === ${width}`);for (const tab of ['items', 'shouts', 'spec', 'doctrine', 'activity', 'roadmap']) {await chrome.evaluate(`document.querySelector('[data-tab="${tab}"]').click()`);await chrome.waitFor(`!document.querySelector('[data-pane="${tab}"]').hidden`);@@ -665,7 +670,8 @@ test('the view never scrolls sideways at 320px [N26]', { timeout: 120_000 }, asy.map((e) => name(e) + ' right ' + Math.round(e.getBoundingClientRect().right) + ': ' + (e.textContent || '').trim().slice(0, 40));return { scrollWidth: document.documentElement.scrollWidth, clientWidth: edge, past: past.slice(0, 8), more: Math.max(0, past.length - 8) };})())`));- assert.ok(seen.scrollWidth <= seen.clientWidth, `320, ${tab}: the page scrolls sideways, ${seen.scrollWidth} wide in ${seen.clientWidth}; past the edge: ${seen.past.join(' | ')}${seen.more ? ` (+${seen.more} more)` : ''}`);+ assert.ok(seen.scrollWidth <= seen.clientWidth, `${width}${font ? ' in a wide font' : ''}, ${tab}: the page scrolls sideways, ${seen.scrollWidth} wide in ${seen.clientWidth}; past the edge: ${seen.past.join(' | ')}${seen.more ? ` (+${seen.more} more)` : ''}`);+ }}} finally {if (chrome) await closeSnapshotChrome(chrome);