Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(viewer): fit the whole diagram on the first screen with notes below

tt-a1idfc84483c734
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3cacff10..b83da7dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo
- **Lifecycle schema v2.** New lifecycle diagrams render one row per lane on a shared `col` 0–4 grid, so a state placed under the state it leaves gets a straight transition. The renderer sizes the canvas, widens column gaps for same-row labels, opens row gaps for the tracks their routes need, and routes automatic transitions with a dedicated orthogonal grid router (parallel reciprocal pairs, crossing-minimized tracks, corridor and outer-loop detours). Row titles move to a vertical left gutter, the implied phase rail is replaced by authored transitions, and state text is one step larger. Schema v1 files keep their exact state geometry.
- **Lifecycle marks and legend.** Start states get a UML initial marker and states without outgoing transitions a double border, both explained in the legend; decision no longer shares failure's red, and success is green. The lifecycle type sigil moves to the top-left like every other mode.
+- **Whole diagram on the first screen.** With notes below the diagram, the adaptive reader now fits the complete diagram and its controls into the viewport down to the renderer's readable text floor, instead of holding primary labels at 12px and scrolling tall diagrams off a laptop screen; zoom restores detail.
- **Readable source badges.** The Viewer's source badge is larger, fully opaque, sized to its text, and placed left of the brand mark; lifecycle, workflow, and data-flow label layout now reserve its width, so it no longer covers sigils or labels.
- Showcase sequence message names use larger primary type and matching label plates; real browser readability checks now include message labels.
- **Clearer Architecture layouts.** Authoring defaults now classify each relationship (main path, branch or store, return, second entrance, fan-out) before placement, with a measured side length for fan-out ports. A passing `finalize` receipt with crossings adds node-move `hints`, backed by new `routeReview` evidence (`sharedNode` on crossings, `crowdedSides` when a side faces more neighbours than it has ports); the Skill allows one bounded, position-only repair for crossings. Automatic routing steps fan-out siblings into free parallel channels and reaches a blocked row of neighbours through one vertical side instead of wrapping around it.
diff --git a/archify.zip b/archify.zip
index 19ade230..73a6dd9c 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/assets/template.html b/archify/assets/template.html
index 2fd338df..e2e99dae 100644
--- a/archify/assets/template.html
+++ b/archify/assets/template.html
@@ -9589,10 +9589,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index be6e1607..6d7bd0bb 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -9700,10 +9700,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index b03b6e18..0834f555 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -9645,10 +9645,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 5d288365..af781f35 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -9715,10 +9715,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index 189ae6dd..07d1d186 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -9688,10 +9688,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index 0ab397ec..d40db9cc 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -9706,10 +9706,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/archify/test/architecture-reading-size-browser.test.mjs b/archify/test/architecture-reading-size-browser.test.mjs
index 00f6ee28..163fd43a 100644
--- a/archify/test/architecture-reading-size-browser.test.mjs
+++ b/archify/test/architecture-reading-size-browser.test.mjs
@@ -69,7 +69,7 @@ test('automatic architectures preserve primary reading size when fitting the ful
}
});
-test('one long label does not enlarge the other titles in a narrow tall architecture', async (t) => {
+test('a narrow tall architecture fits the first screen without enlarging the other titles', async (t) => {
if (!Object.hasOwn(process.env, 'ARCHIFY_CHROME')) return t.skip('Set ARCHIFY_CHROME for real browser checks');
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-reading-size-stress-'));
const input = path.join(dir, 'input.json');
@@ -92,16 +92,21 @@ test('one long label does not enlarge the other titles in a narrow tall architec
const result = await browser.cdp.send('Runtime.evaluate', { returnByValue: true, expression: `(() => {
const svg = document.querySelector('.diagram-container > svg');
const scale = svg.getBoundingClientRect().width / svg.viewBox.baseVal.width;
- return [...svg.querySelectorAll('text[data-node-label]')].map(text => ({
- source: Number(text.getAttribute('font-size')), projected: Number(text.getAttribute('font-size')) * scale }));
+ return {
+ diagramBottom: document.querySelector('.diagram-container').getBoundingClientRect().bottom,
+ sizes: [...svg.querySelectorAll('text[data-node-label]')].map(text => ({
+ source: Number(text.getAttribute('font-size')), projected: Number(text.getAttribute('font-size')) * scale })),
+ };
})()` }, session);
assert.equal(result.exceptionDetails, undefined);
- const sizes = result.result.value;
+ const { sizes, diagramBottom } = result.result.value;
assert.ok(sizes[0].source < sizes[1].source, 'fixture must contain a fitted long title');
- // The bottom rail may trade comfort down to 12px; hierarchy still holds.
- assert.ok(sizes[1].projected >= 12 - 0.01 && sizes[1].projected <= 14.2, JSON.stringify(sizes));
+ // With notes below the fold the whole graph takes the first screen: text
+ // may shrink toward the declared 7.5px floor, and hierarchy still holds.
+ assert.ok(sizes[0].projected < sizes[1].projected, JSON.stringify(sizes));
+ assert.ok(sizes[0].projected >= 7.5 - 0.01 && sizes[1].projected <= 14.2, JSON.stringify(sizes));
assert.ok(metrics.scrollWidth <= 1440);
- assert.ok(metrics.scrollHeight > 900, 'preserve ordinary scroll instead of shrinking the tall graph');
+ assert.ok(diagramBottom <= 900, `the tall graph must fit the first screen (diagram bottom ${diagramBottom})`);
} finally {
await browser.close();
fs.rmSync(dir, { recursive: true, force: true });
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index f11858db..abc7fdbc 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 9771a11b..c64cc81f 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,13 +7,13 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 818216,
- "sha256": "76393a564a6f2308f5b43dbb45abb3b5c30d4769d7bd7e652f0cafc77ff3888f",
+ "bytes": 823212,
+ "sha256": "478bae9e8784f1697dd4ed0ee0a625d956fb10d39e239b9cab0eae067437ecc0",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "3d2b8c788902a6eea84e67e50f2a255e2e96973887c1bf4c31cf0a15fcff26b6",
+ "artifactSha256": "9cd6b7136cf03474679b7e16824eb5f5dcbed5998cd71e266dafe7144ad5e1de",
"hash": "#focus=planner&reach=downstream",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@ -22,7 +22,7 @@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "99a47aff05d3d083eab09ba248c249624ac2363c7fafb7562079300eef00ff56",
+ "artifactSha256": "8e7e4e99fbdf8983b9d460b20abbb8c40b18f01056c09b06b564504dfa5f3c43",
"hash": "#lens=backend~database",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "4afe24a92e267e4d46e60560b2e4d15859e1a6278d3b02635d8c8ac99e2d611e",
+ "artifactSha256": "09de547378ed4529bce89690a8c645b6d64f24ba8930a87914302412fb36af88",
"hash": "#route=web~db",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.html
index 2d63576a..4f1bd5e2 100644
--- a/docs/cases/mco-runtime.architecture.html
+++ b/docs/cases/mco-runtime.architecture.html
@@ -9750,10 +9750,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery.html b/docs/gallery.html
index 65c14c14..2ade37bf 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -298,7 +298,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3d2b8c788902a6eea84e67e50f2a255e2e96973887c1bf4c31cf0a15fcff26b6">3d2b8c788902</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9cd6b7136cf03474679b7e16824eb5f5dcbed5998cd71e266dafe7144ad5e1de">9cd6b7136cf0</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html#focus=planner" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -328,7 +328,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="99a47aff05d3d083eab09ba248c249624ac2363c7fafb7562079300eef00ff56">99a47aff05d3</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8e7e4e99fbdf8983b9d460b20abbb8c40b18f01056c09b06b564504dfa5f3c43">8e7e4e99fbdf</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html#focus=gateway" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -357,7 +357,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4afe24a92e267e4d46e60560b2e4d15859e1a6278d3b02635d8c8ac99e2d611e">4afe24a92e26</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="09de547378ed4529bce89690a8c645b6d64f24ba8930a87914302412fb36af88">09de547378ed</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html#focus=redis" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -386,7 +386,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="fe77e41cbdcd01feb65f3c3a71e7e7d7870ec545dbdbe6e5426b20e4fcd8db39">fe77e41cbdcd</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8b3d47ef0c1adccd5bdd2d9ba2e324abc881cd65ffb5e12fe34885c0223d6746">8b3d47ef0c1a</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -415,7 +415,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2a489d68cbcca5816acc2ff31c24e8320489339033dd5534b8d8355909b18a89">2a489d68cbcc</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1857a1fbb424d38b711024709aaa01b2a39ca1f5b4552f57afdad7fe302561d0">1857a1fbb424</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html#focus=triage" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -444,7 +444,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="964107ece36b57fa71018a77f05b61032a4ef9877d54338c0ce55432e53732a7">964107ece36b</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2373f8f8b48e8681b1e543e0a46700fc828762ae3b7c7be4ce59d964e892e97e">2373f8f8b48e</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html#focus=consent" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -473,7 +473,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9b46f19e67c8ebec5ff984dd9f5bc520385c805d53630debb24f224ef3b90b5a">9b46f19e67c8</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="80b27150bbbb01af08096a505f8e5b9d43a197e6594a325d21e6232841ea7bbf">80b27150bbbb</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html#focus=queue" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -502,7 +502,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b338abc2e5ec9f652be972346e3f5f4b7c1e4a57816be6c1904dfbf36fff81f7">b338abc2e5ec</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="51f6bc661cda652c30505245e62a677dcd9b220e5098121199bdad261399aca7">51f6bc661cda</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html#focus=orders" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -531,7 +531,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="f175dcf347c1402d0983d4eef858fee4f73903f83cbd609dffce4bbdca9c8a37">f175dcf347c1</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b545cce914cbcc17f74ac308595e48ab254d762aa7bd71f091dbb44df64a467f">b545cce914cb</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -560,7 +560,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 11E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5f1478edb35f5e3050c37ab2f801a2c7f7869631052fe918fb72c09375fd24c4">5f1478edb35f</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="563f84e3ed124345bf8919141b06b0c5e7e3f57bc3c002847c9229e7c3ebab2e">563f84e3ed12</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html#focus=live" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -589,7 +589,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="01b1444dafdce24a0cd90a5d11ac2be3abb68c2eb78203d4825e294e56ac4a42">01b1444dafdc</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="10dc3875eef51086dadea11c77020394997134be8006dc5c62e81f94bbb77e0a">10dc3875eef5</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html#focus=api" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@ -667,8 +667,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 765483,
- "artifactSha256": "3d2b8c788902a6eea84e67e50f2a255e2e96973887c1bf4c31cf0a15fcff26b6",
+ "artifactBytes": 765484,
+ "artifactSha256": "9cd6b7136cf03474679b7e16824eb5f5dcbed5998cd71e266dafe7144ad5e1de",
"sourceBytes": 4939,
"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f",
"checks": [
@@ -802,8 +802,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 768210,
- "artifactSha256": "99a47aff05d3d083eab09ba248c249624ac2363c7fafb7562079300eef00ff56",
+ "artifactBytes": 768211,
+ "artifactSha256": "8e7e4e99fbdf8983b9d460b20abbb8c40b18f01056c09b06b564504dfa5f3c43",
"sourceBytes": 4734,
"sourceSha256": "cb54bad2dfd0c2d02aa5b496bde6839789a0f07f23062343c4458b8d38806c13",
"checks": [
@@ -935,8 +935,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 759977,
- "artifactSha256": "4afe24a92e267e4d46e60560b2e4d15859e1a6278d3b02635d8c8ac99e2d611e",
+ "artifactBytes": 759978,
+ "artifactSha256": "09de547378ed4529bce89690a8c645b6d64f24ba8930a87914302412fb36af88",
"sourceBytes": 3805,
"sourceSha256": "f5c2e44f9a44000adc7c3b3040c4fcd88fe50b7cf8761302c21eb0c184e5780a",
"checks": [
@@ -1057,8 +1057,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 760997,
- "artifactSha256": "fe77e41cbdcd01feb65f3c3a71e7e7d7870ec545dbdbe6e5426b20e4fcd8db39",
+ "artifactBytes": 760998,
+ "artifactSha256": "8b3d47ef0c1adccd5bdd2d9ba2e324abc881cd65ffb5e12fe34885c0223d6746",
"sourceBytes": 4510,
"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c",
"checks": [
@@ -1197,8 +1197,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 758317,
- "artifactSha256": "2a489d68cbcca5816acc2ff31c24e8320489339033dd5534b8d8355909b18a89",
+ "artifactBytes": 758318,
+ "artifactSha256": "1857a1fbb424d38b711024709aaa01b2a39ca1f5b4552f57afdad7fe302561d0",
"sourceBytes": 4723,
"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526",
"checks": [
@@ -1383,8 +1383,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 762317,
- "artifactSha256": "964107ece36b57fa71018a77f05b61032a4ef9877d54338c0ce55432e53732a7",
+ "artifactBytes": 762318,
+ "artifactSha256": "2373f8f8b48e8681b1e543e0a46700fc828762ae3b7c7be4ce59d964e892e97e",
"sourceBytes": 5035,
"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05",
"checks": [
@@ -1518,8 +1518,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 759058,
- "artifactSha256": "9b46f19e67c8ebec5ff984dd9f5bc520385c805d53630debb24f224ef3b90b5a",
+ "artifactBytes": 759059,
+ "artifactSha256": "80b27150bbbb01af08096a505f8e5b9d43a197e6594a325d21e6232841ea7bbf",
"sourceBytes": 3766,
"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a",
"checks": [
@@ -1658,8 +1658,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 766237,
- "artifactSha256": "b338abc2e5ec9f652be972346e3f5f4b7c1e4a57816be6c1904dfbf36fff81f7",
+ "artifactBytes": 766238,
+ "artifactSha256": "51f6bc661cda652c30505245e62a677dcd9b220e5098121199bdad261399aca7",
"sourceBytes": 4769,
"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23",
"checks": [
@@ -1810,8 +1810,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 756627,
- "artifactSha256": "f175dcf347c1402d0983d4eef858fee4f73903f83cbd609dffce4bbdca9c8a37",
+ "artifactBytes": 756628,
+ "artifactSha256": "b545cce914cbcc17f74ac308595e48ab254d762aa7bd71f091dbb44df64a467f",
"sourceBytes": 3405,
"sourceSha256": "230242a7557663877766c43a9fe7cffe8b4fb66e4866457dccd24c63175b4917",
"checks": [
@@ -1981,8 +1981,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 11,
- "artifactBytes": 763682,
- "artifactSha256": "5f1478edb35f5e3050c37ab2f801a2c7f7869631052fe918fb72c09375fd24c4",
+ "artifactBytes": 763683,
+ "artifactSha256": "563f84e3ed124345bf8919141b06b0c5e7e3f57bc3c002847c9229e7c3ebab2e",
"sourceBytes": 3507,
"sourceSha256": "f565a8acfebdb21453e2bccd82d3760b4736e38fe194fb2f0804b57817eba813",
"checks": [
@@ -2103,8 +2103,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 760023,
- "artifactSha256": "01b1444dafdce24a0cd90a5d11ac2be3abb68c2eb78203d4825e294e56ac4a42",
+ "artifactBytes": 760024,
+ "artifactSha256": "10dc3875eef51086dadea11c77020394997134be8006dc5c62e81f94bbb77e0a",
"sourceBytes": 3197,
"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b",
"checks": [
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index b03b6e18..0834f555 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -9645,10 +9645,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index 0ab397ec..d40db9cc 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -9706,10 +9706,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index 835ee8fb..30ce59f7 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -9727,10 +9727,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 5d288365..af781f35 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -9715,10 +9715,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index c1afb97a..6f36fae4 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -9718,10 +9718,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index 347687e3..fd7cf8d4 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -9739,10 +9739,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index 11cfab4a..9fb866e4 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -9666,10 +9666,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index be6e1607..6d7bd0bb 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -9700,10 +9700,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index 50980bcb..82c8db67 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -9743,10 +9743,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index a93d44b9..54711871 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -9692,10 +9692,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index 189ae6dd..07d1d186 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -9688,10 +9688,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index ff46b56b..1c1bc1e4 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -19,8 +19,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 765483,
- "artifactSha256": "3d2b8c788902a6eea84e67e50f2a255e2e96973887c1bf4c31cf0a15fcff26b6",
+ "artifactBytes": 765484,
+ "artifactSha256": "9cd6b7136cf03474679b7e16824eb5f5dcbed5998cd71e266dafe7144ad5e1de",
"sourceBytes": 4939,
"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f",
"checks": [
@@ -154,8 +154,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 768210,
- "artifactSha256": "99a47aff05d3d083eab09ba248c249624ac2363c7fafb7562079300eef00ff56",
+ "artifactBytes": 768211,
+ "artifactSha256": "8e7e4e99fbdf8983b9d460b20abbb8c40b18f01056c09b06b564504dfa5f3c43",
"sourceBytes": 4734,
"sourceSha256": "cb54bad2dfd0c2d02aa5b496bde6839789a0f07f23062343c4458b8d38806c13",
"checks": [
@@ -287,8 +287,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 759977,
- "artifactSha256": "4afe24a92e267e4d46e60560b2e4d15859e1a6278d3b02635d8c8ac99e2d611e",
+ "artifactBytes": 759978,
+ "artifactSha256": "09de547378ed4529bce89690a8c645b6d64f24ba8930a87914302412fb36af88",
"sourceBytes": 3805,
"sourceSha256": "f5c2e44f9a44000adc7c3b3040c4fcd88fe50b7cf8761302c21eb0c184e5780a",
"checks": [
@@ -409,8 +409,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 760997,
- "artifactSha256": "fe77e41cbdcd01feb65f3c3a71e7e7d7870ec545dbdbe6e5426b20e4fcd8db39",
+ "artifactBytes": 760998,
+ "artifactSha256": "8b3d47ef0c1adccd5bdd2d9ba2e324abc881cd65ffb5e12fe34885c0223d6746",
"sourceBytes": 4510,
"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c",
"checks": [
@@ -549,8 +549,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 758317,
- "artifactSha256": "2a489d68cbcca5816acc2ff31c24e8320489339033dd5534b8d8355909b18a89",
+ "artifactBytes": 758318,
+ "artifactSha256": "1857a1fbb424d38b711024709aaa01b2a39ca1f5b4552f57afdad7fe302561d0",
"sourceBytes": 4723,
"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526",
"checks": [
@@ -735,8 +735,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 762317,
- "artifactSha256": "964107ece36b57fa71018a77f05b61032a4ef9877d54338c0ce55432e53732a7",
+ "artifactBytes": 762318,
+ "artifactSha256": "2373f8f8b48e8681b1e543e0a46700fc828762ae3b7c7be4ce59d964e892e97e",
"sourceBytes": 5035,
"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05",
"checks": [
@@ -870,8 +870,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 759058,
- "artifactSha256": "9b46f19e67c8ebec5ff984dd9f5bc520385c805d53630debb24f224ef3b90b5a",
+ "artifactBytes": 759059,
+ "artifactSha256": "80b27150bbbb01af08096a505f8e5b9d43a197e6594a325d21e6232841ea7bbf",
"sourceBytes": 3766,
"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a",
"checks": [
@@ -1010,8 +1010,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 766237,
- "artifactSha256": "b338abc2e5ec9f652be972346e3f5f4b7c1e4a57816be6c1904dfbf36fff81f7",
+ "artifactBytes": 766238,
+ "artifactSha256": "51f6bc661cda652c30505245e62a677dcd9b220e5098121199bdad261399aca7",
"sourceBytes": 4769,
"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23",
"checks": [
@@ -1162,8 +1162,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 756627,
- "artifactSha256": "f175dcf347c1402d0983d4eef858fee4f73903f83cbd609dffce4bbdca9c8a37",
+ "artifactBytes": 756628,
+ "artifactSha256": "b545cce914cbcc17f74ac308595e48ab254d762aa7bd71f091dbb44df64a467f",
"sourceBytes": 3405,
"sourceSha256": "230242a7557663877766c43a9fe7cffe8b4fb66e4866457dccd24c63175b4917",
"checks": [
@@ -1333,8 +1333,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 11,
- "artifactBytes": 763682,
- "artifactSha256": "5f1478edb35f5e3050c37ab2f801a2c7f7869631052fe918fb72c09375fd24c4",
+ "artifactBytes": 763683,
+ "artifactSha256": "563f84e3ed124345bf8919141b06b0c5e7e3f57bc3c002847c9229e7c3ebab2e",
"sourceBytes": 3507,
"sourceSha256": "f565a8acfebdb21453e2bccd82d3760b4736e38fe194fb2f0804b57817eba813",
"checks": [
@@ -1455,8 +1455,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 760023,
- "artifactSha256": "01b1444dafdce24a0cd90a5d11ac2be3abb68c2eb78203d4825e294e56ac4a42",
+ "artifactBytes": 760024,
+ "artifactSha256": "10dc3875eef51086dadea11c77020394997134be8006dc5c62e81f94bbb77e0a",
"sourceBytes": 3197,
"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b",
"checks": [
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index 0da15329..3f2f696e 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -14334,10 +14334,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === &#39;1&#39; || (collapsedPreference !== &#39;0&#39; &amp;&amp; !comfortable)) mode = &#39;collapsed&#39;;
else mode = fitsReadable ? &#39;true&#39; : &#39;overlay&#39;;
}
- // With notes below the fold, the diagram may trade the renderer&#39;s
- // comfortable primary size down to the rail&#39;s 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === &#39;bottom&#39; &amp;&amp; primaryWidth &gt; 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer&#39;s readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === &#39;bottom&#39;) primaryWidth = 0;
if (primaryWidth &gt; 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === &#39;true&#39;;
setRail(mode);
@@ -28356,10 +28357,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === &#39;1&#39; || (collapsedPreference !== &#39;0&#39; &amp;&amp; !comfortable)) mode = &#39;collapsed&#39;;
else mode = fitsReadable ? &#39;true&#39; : &#39;overlay&#39;;
}
- // With notes below the fold, the diagram may trade the renderer&#39;s
- // comfortable primary size down to the rail&#39;s 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === &#39;bottom&#39; &amp;&amp; primaryWidth &gt; 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer&#39;s readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === &#39;bottom&#39;) primaryWidth = 0;
if (primaryWidth &gt; 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === &#39;true&#39;;
setRail(mode);
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index 25aa3940..7aba41a4 100644
--- a/examples/checkout-platform-delta.receipt.json
+++ b/examples/checkout-platform-delta.receipt.json
@@ -219,8 +219,8 @@
"Boundary identity is conservatively derived from kind + label."
],
"artifact": {
- "sha256": "269ef2567a2ad44e4187ebe7a6a4035fda51d8fea2c62afd06aebccd154be6f7",
- "bytes": 2118583
+ "sha256": "812220a0f01488f1ab6b6dcfd437230f4c934926eb51450d68b60e24b57bc3fa",
+ "bytes": 2118555
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index be6e1607..6d7bd0bb 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -9700,10 +9700,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index b03b6e18..0834f555 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -9645,10 +9645,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 5d288365..af781f35 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -9715,10 +9715,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index 189ae6dd..07d1d186 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -9688,10 +9688,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/examples/web-app.html b/examples/web-app.html
index 189ae6dd..07d1d186 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -9688,10 +9688,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index 0ab397ec..d40db9cc 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -9706,10 +9706,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/experiments/mco-showcase/mco-runtime.html b/experiments/mco-showcase/mco-runtime.html
index 778f0f26..3f82ab6e 100644
--- a/experiments/mco-showcase/mco-runtime.html
+++ b/experiments/mco-showcase/mco-runtime.html
@@ -9713,10 +9713,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
diff --git a/viewer/reader-layout.js b/viewer/reader-layout.js
index 7002f8ee..facdc52a 100644
--- a/viewer/reader-layout.js
+++ b/viewer/reader-layout.js
@@ -251,10 +251,11 @@
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // With notes below the fold, the first screen belongs to the whole
+ // diagram and its controls: it may shrink past the comfortable primary
+ // size down to the renderer's readable text floor, and zoom restores
+ // detail. Only a graph taller than that floor allows still scrolls.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);