Repository navigation
fix(layout): cut a publication's editorial page of a very wide area, keeping its whole legend - #3334
Conversation
…keeping its whole legend
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewScope: 2 files, 104 added / 33 removed lines. The change makes BugsNone found. I traced the editorial cut path: SecurityNone. The change touches no input parsing, paths or command surface. Performance
Quality
AGENTS.md
Left alone: 0 earlier concerns (no prior threads). Change sizeCompared with the base branch (
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
layout.publicationwith"style": "editorial"cuts the page of a very wide area, and keeps the legend whole in the side column.The editorial page already went through the same cut loop as the panel sheet, but two of its guards applied to the panel alone:
On A4 portrait with the sample project (30° wide areas), the 14° tall one now takes an 83 mm frame with the whole legend, instead of 69 mm with rows lost; the 1° tall one is cut to the same frame instead of staying at 226 mm. A cut never leaves the column less than 30 mm under the note, so a page with a long note is cut less, or not at all. The change is inside
layout.publication, so every caller of the command gets it.Testing
tests/layout_panel_cut.rs: the issue's areas are cut with the whole legend, a cut leaves the column its room under a long note, a legend no cut page could hold leaves the page whole and says so, and the sheet matrix runs for both styles. These failed without the fix. A guard keeps a tall area uncut.UI evidence
A4 portrait, editorial, sample project. Left (red) before, right (green) after.
14° tall area:
1° tall area:
Related issue
Closes #3331
Summary by CodeRabbit