Skip to content

fix(scorecard): group titles and units wrap and shrink until neighbours clear - #14

Merged
vitusbenson merged 1 commit into
mainfrom
scorecard-groups-units-fit
Nov 23, 2026
Merged

vitusbenson merged 1 commit into
mainfrom
scorecard-groups-units-fit

Conversation

@vitusbenson

Copy link
Copy Markdown
Collaborator
  • _scorecard.fit_labels: the heading fit generalised to any span; fit_headings uses it
  • group titles fit their block, units their cell: wrap at spaces, shrink (groups 9.5 → 6 pt, units 6 → 4.5 pt) until neighbours clear; header heights follow the wrapped line counts
  • fixes overprinted titles of alternating single-column groups and long units (Bq m⁻³ (STP)) on adjacent columns, found by torchtransport's layout tests (#899)
  • tests: two new contracts in tests/test_scorecard.py; 606 pass

@vitusbenson
vitusbenson merged commit c1a11e7 into main Nov 23, 2026
8 checks passed
@vitusbenson
vitusbenson deleted the scorecard-groups-units-fit branch November 23, 2026 10:21
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.

1 participant