Repository navigation
overview: the rounds go under the title when they need the room - #45
Merged
Merged
Conversation
With many rounds the header's grid gave the round strip an auto column, and the title and about text got what was left: nine rounds left the title 36 px wide from 900 px windows up. The header now wraps: the rounds sit beside the title while it keeps 30rem, otherwise they take a row of their own and scroll there, and the tab of the round shown is scrolled into view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the overview-header layout and selected-round visibility changes.
No open issues 🎉
What changed in this PR
This PR improves the header layout of pages generated by pcbkit overview, preventing long round strips from squeezing the project title.
Changes:
- Replaces the header grid with a wrapping flex layout, moving rounds below the title when space is limited.
- Keeps the selected round’s tab visible on page load, hash navigation, and window resize.
- Documents the layout fix and revised single-round behavior in the changelog.
| File | Description |
|---|---|
pcbkit/data/overview/page.html |
Adds responsive header wrapping and automatic scrolling to the selected round tab. |
CHANGELOG.md |
Records the overview header fix under Unreleased. |
Review effort: Balanced
CHANGELOG's [Unreleased] keeps both: this PR's overview fix under Fixed, and the JLC rotation entries from PR 46 under Changed, as earlier rotation entries are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
The header of the page
pcbkit overviewmakes (pcbkit/data/overview/page.html):#rNlink and on resize.[Unreleased]→ Fixed.Why
The grid gave the round strip an
autocolumn, so the title got whatever width was left. On the audio node page (9 rounds) the title block was 36 px wide and 1080 px tall at every window width from 900 px up, even at 1800 px. With 4 rounds the title still broke onto two lines at 900–1000 px. Below 860 px the header already stacked, but the strip scrolled with the newest round (the one shown) off its right end.Evidence
The pages were built with this branch from scratch copies of the audio node project: its 9 rounds, cut to 1 and 4 rounds, and padded to 14. Orbitchron was also built, with a round 1 started by
pcbkit overview new(no project in~/Documents/Projectsother than the audio node has round files). Each page was measured in a browser at 375–1800 px and looked at in light and dark themes.Title block width in px (rounds beside / below the title; ✗ = the shown round's tab is out of view):
After the change, the h1 is on one line at every width from 800 px up, no page scrolls sideways, and the shown round's tab is in view in every case. Following
#r2and#r14on the 14-round page at 800 px scrolls the strip to its start and its end. Orbitchron (1 round) looks as before at 900 px and up.python3 tests/test_overview.pypasses (101 tests).Decisions
🤖 Generated with Claude Code