Skip to content

fix: measure the architecture diagram within its widget - #4260

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4226
Oct 26, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4226

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The architecture diagram test now measures the diagram widget’s scrollport, preserving its assertion that the drawing fits without horizontal scrolling. After #4205 replaced the inline SVG with lf-diagram, the old prose-width figure measurement counted the widget’s intentional allocation into the page margins as overflow. The page’s appearance and diagram layout are unchanged.

On current main, the original test reproduced 936 != 720. Browser inspection showed a 303px SVG inside a 1,152px widget, while the surrounding figure remained 720px wide. The corrected test_every_product_route_is_a_live_leaf_page passes, including its phone-width root overflow checks. Python compilation and git diff --check also pass; Ruff is unavailable locally and remains for CI.

Closes #4226 — automated triage

PR #4205 replaced the inline SVG with lf-diagram, which intentionally uses the page margins. The prose-width figure's scrollWidth includes that allocation even though the drawing fits. Measure the diagram's own scrollport to preserve the no-internal-scroll assertion without constraining its wrapper.

Closes #4226
@leaf-agent
leaf-agent merged commit cc191f9 into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4226 branch October 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Site architecture diagram overflows its 720px box to 936px

1 participant