feat(board): let the boards use a laptop's width above the phone cap - #313
Merged
Conversation
44rem is a phone reading measure, and the boards are read on laptops too. Above the cap the column stops being a measure and starts being a waste: the data boards (Heart's check table, Mind's task lists) run ~40 short lines down a 704px strip with the rest of the screen empty. One step up at laptop-class viewports, and only there — every narrower screen keeps the phone shape byte for byte, so the family look is unchanged where it was designed to matter. Reported against the Heart board; fixed here because the cap is a family contract, not one board's choice. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018q6ZrgG6u8o8ENYZ7cq3Lr
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.
Reported against the Heart board from a laptop: the page reads as a long column of text. The cap that causes it is a family contract, so it is fixed here rather than in one board.
The problem
body{max-width:44rem}is a phone reading measure. Above the cap it stops being a measure and starts being a waste: the data boards — Heart's check table with a detail list under most rows, Mind's task lists — run ~40 short lines down a 704px strip with the rest of a laptop's screen left empty.The fix
One media query, next to the
bodyrule:Applied only above the existing cap. Every narrower viewport — phone, tablet, split-screen — keeps the current shape byte for byte, so the reading measure stays where it was designed to matter. All five boards inherit it, since they all render through this sheet.
Verification
pytest tests→ 606 passed (tests/test_board_theme.py+tests/test_board.pygreen on their own too).board.jsonagainst the patched theme: CSS-only diff, no markup change on any surface.Companion: PyAutoLabs/PyAutoHeart#191 fixes the other half of the same report (the board's detail lines losing their column alignment) — independent, either can merge first.
🤖 Generated with Claude Code
https://claude.ai/code/session_018q6ZrgG6u8o8ENYZ7cq3Lr