Skip to content

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

fix(website): keep narrow homepage viewport within device width

tt-a1id9349ebc5199
diff --git a/archify/test/site-language-continuity.test.mjs b/archify/test/site-language-continuity.test.mjs
index 0371baef..7269dc19 100644
--- a/archify/test/site-language-continuity.test.mjs
+++ b/archify/test/site-language-continuity.test.mjs
@@ -562,7 +562,7 @@ test('real Chrome preserves language through entry, navigation, selection, refre
var x = linkRect.x + linkRect.width / 2;
var y = linkRect.y + linkRect.height / 2;
return {
- height: rect.height, left: rect.left, right: rect.right,
+ height: rect.height, left: rect.left, right: rect.right, pageWidth: document.documentElement.scrollWidth,
communityLabel: community.textContent.trim(),
language: document.documentElement.lang,
active: nav.querySelector('[aria-current="page"]')?.getAttribute('href') || null,
@@ -577,6 +577,7 @@ test('real Chrome preserves language through entry, navigation, selection, refre
assert.equal(mobile.height, 104, page);
assert.equal(mobile.left, 0, page);
assert.equal(mobile.right, width, page);
+ assert.ok(mobile.pageWidth <= width, `${page} ${language} ${width}: page must not overflow`);
assert.equal(mobile.language, language === 'zh' ? 'zh-CN' : 'en', page);
assert.equal(mobile.communityLabel, language === 'zh' ? '社区包' : 'Community', page);
assert.equal(mobile.active, page === 'index.html' ? null : page, page);
diff --git a/docs/index.html b/docs/index.html
index 94d17fb2..f82824de 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -363,7 +363,8 @@
.cta-actions { flex-direction:column; gap:1rem; }
.cta-install { width:100%; justify-content:center; }
footer { padding:2rem 1.25rem; }
- .footer-inner { grid-template-columns:1fr; }
+ .footer-inner { grid-template-columns:minmax(0,1fr); }
+ .footer-left, .footer-links { flex-wrap:wrap; }
.footer-left { border-right:0; border-bottom:1px solid var(--line); }
}
</style>
diff --git a/website/src/styles/index.css b/website/src/styles/index.css
index 41ef6ce7..920cd73c 100644
--- a/website/src/styles/index.css
+++ b/website/src/styles/index.css
@@ -342,6 +342,7 @@
.cta-actions { flex-direction:column; gap:1rem; }
.cta-install { width:100%; justify-content:center; }
footer { padding:2rem 1.25rem; }
- .footer-inner { grid-template-columns:1fr; }
+ .footer-inner { grid-template-columns:minmax(0,1fr); }
+ .footer-left, .footer-links { flex-wrap:wrap; }
.footer-left { border-right:0; border-bottom:1px solid var(--line); }
}