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): spec rows stack under 480px, not at it [N26]
Corey Olsonb203825b2f59
diff --git a/src/cockpit.js b/src/cockpit.jsindex 6b9a89d7..ec86005c 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -213,7 +213,7 @@ input, select { border: 1px solid var(--line-strong); background: var(--surface).srow:hover { background: var(--surface-2); }.srow.on { background: var(--accent-soft); }.srow code { font: 600 12px var(--mono); }-@media (max-width: 480px) { .srow { grid-template-columns: auto minmax(0, 1fr); } .srow > span:last-child { grid-column: 1 / -1; } }+@media (width < 480px) { .srow { grid-template-columns: auto minmax(0, 1fr); } .srow > span:last-child { grid-column: 1 / -1; } }.flow { margin: 0 0 12px; padding: 10px 12px 8px; overflow-x: auto; }.flow svg { display: block; width: 100%; min-width: 680px; max-width: 900px; height: auto; margin: 0 auto; }.flow figcaption { color: var(--ink-faint); font-size: 12px; padding: 2px 2px 0; }diff --git a/test/cockpit.test.js b/test/cockpit.test.jsindex b6ab83e6..903773a7 100644--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@ -829,7 +829,9 @@ test('spec rows read across a phone [N26]', async () => {const page = await openPage(view, { width: 375 });const style = page.html.slice(page.html.indexOf('<style>'), page.html.indexOf('</style>'));assert.match(style, /\n\.srow \{ display: grid; grid-template-columns: 4\.4em 6\.2em minmax\(0, 1fr\);/, 'wider, a row keeps its three columns');- assert.match(style, /\n@media \(max-width: 480px\) \{ \.srow \{ grid-template-columns: auto minmax\(0, 1fr\); \} \.srow > span:last-child \{ grid-column: 1 \/ -1; \} \}\n/, 'under 480px, the text takes the full width below the id and status');+ const phone = /\n@media ([^{]+) \{ \.srow \{ grid-template-columns: auto minmax\(0, 1fr\); \} \.srow > span:last-child \{ grid-column: 1 \/ -1; \} \}\n/.exec(style);+ assert.ok(phone, 'on a phone the text takes the full width below the id and status');+ assert.equal(phone[1], '(width < 480px)', 'under 480px only: at 480px itself the three columns stay');// The rule holds because every row is the id, then the status, then the text.await page.click({ rows: 'spec:all' });