Skip to content

fix(heart): render the board's detail lines as the columns they are - #191

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/board-detail-alignment
Aug 28, 2026
Merged

fix(heart): render the board's detail lines as the columns they are#191
Jammy2211 merged 2 commits into
mainfrom
feature/board-detail-alignment

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Reported from a laptop: the board reads as a long column of text. Two causes; this PR fixes the one that lives in the Heart.

The problem

Every <li> under a board row is space-padded terminal text, pasted into html unchanged:

PyAutoArray                CI ✓  repo state n/a here  PR×1
autogalaxy_workspace_test Smoke Tests  p50 12m  max 222m  (36 runs)  ▅▅▅▅▅

Html collapses runs of spaces, so all ~40 of those lines rendered as run-on prose in a proportional face — the columns the text was built around simply vanished, and the whole block read as one grey paragraph.

The fix

CSS only, in _EXTRA_CSS:

  • white-space:pre-wrap — the padding survives, so the columns line up as they do in the terminal render.
  • a monospace face at .8rem — the padding means something again.

A line too long for the column still wraps rather than scrolling the page, so the shared sheet's wrap guard is untouched.

The other half

The same report's second cause — the shared 44rem page cap wasting a laptop's width — is a family contract, so it is fixed once for every board in PyAutoLabs/PyAutoBrain#313 rather than here.

Verification

  • pytest tests → 656 passed.
  • Regenerated the live page from the published board.json with the new CSS: the diff against the live page is exactly this rule, nothing else moved.

🤖 Generated with Claude Code

https://claude.ai/code/session_018q6ZrgG6u8o8ENYZ7cq3Lr

Every `<li>` under a board row is space-padded terminal text —
`PyAutoArray                CI ✓  repo state n/a here  PR×1` — pasted into
html unchanged. Html collapses those runs of spaces, so all ~40 of them
rendered as run-on prose in a proportional face and the block read as one
long grey column instead of a table.

`white-space:pre-wrap` keeps the padding and a monospace face makes it mean
something again; a line too long for the column still wraps rather than
scrolling the page (the shared sheet's wrap guard).

The other half of the same report — the 44rem page cap wasting a laptop's
width — is fixed for every board in the shared theme (PyAutoBrain), not
here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018q6ZrgG6u8o8ENYZ7cq3Lr
The tenant firewall names it exactly: a worked example in the comment used
`PyAutoArray`, an instance fact, in organ code. `<repo>` says the same thing
about the shape of the line without naming a tenant.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018q6ZrgG6u8o8ENYZ7cq3Lr
@Jammy2211
Jammy2211 merged commit 254ac05 into main Aug 28, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/board-detail-alignment branch August 28, 2026 14:42
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