Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
test(viewer): preserve reading layout across camera breakpoint changes
tt-a1i43c18113b0cb
diff --git a/archify/test/viewer-chrome-layout.test.mjs b/archify/test/viewer-chrome-layout.test.mjsindex 310bd3dc..15d1bcbf 100644--- a/archify/test/viewer-chrome-layout.test.mjs+++ b/archify/test/viewer-chrome-layout.test.mjs@@ -694,7 +694,12 @@ test('zoomed camera restores its bounded desktop rail after crossing the mobileassert.ok(Math.abs(restored.reserve - baseline.reserve) <= 1, JSON.stringify({ baseline, zoomed, restored }));assert.equal(restored.receiptReserve, restored.reserve, JSON.stringify(restored));assert.equal(restored.receiptEligible, true, JSON.stringify(restored));- assert.ok(restored.scrollHeight <= restored.innerHeight, JSON.stringify(restored));+ // Reading-size preservation may require ordinary page scroll before zoom.+ // Crossing the breakpoint must restore that same layout, not grow it.+ assert.ok(Math.abs(restored.scrollHeight - baseline.scrollHeight) <= 1, JSON.stringify({ baseline, restored }));+ assert.ok(Math.abs(restored.containerHeight - baseline.containerHeight) <= 1, JSON.stringify({ baseline, restored }));+ assert.ok(restored.scrollWidth <= restored.innerWidth, JSON.stringify(restored));+ assert.equal(restored.dockStageIntersectionArea, 0, JSON.stringify(restored));} finally {await browser.close();}