Repository navigation
fix: measure the architecture diagram within its widget - #4260
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 correctedtest_every_product_route_is_a_live_leaf_pagepasses, including its phone-width root overflow checks. Python compilation andgit diff --checkalso pass; Ruff is unavailable locally and remains for CI.Closes #4226 — automated triage