Skip to content

Bound and center content app-wide (--content-max)#38

Draft
CST-100 wants to merge 1 commit into
develfrom
claude/content-max-centering
Draft

Bound and center content app-wide (--content-max)#38
CST-100 wants to merge 1 commit into
develfrom
claude/content-max-centering

Conversation

@CST-100

@CST-100 CST-100 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Split out of #36 to review independently.

Content width becomes a global budget: .main is bounded to --content-max: 1400px and centered, so wide viewports split slack symmetrically instead of pooling it to the right of left-anchored pages (issue tickets were the worst case). Chrome stays full-bleed; the breadcrumb bar pads its text to the centered content edge so crumbs and content read as one column. ok.panel(max_width=...) panels now self-center, and a 10-agent template survey caught the four pages that bounded by hand without centering (settings index, project wizard, docs, styleguide) — they'd otherwise jump ~90px when navigating between siblings.

Also fixes a pre-existing bug the survey surfaced: the scrap modal on the OPAL detail page referenced .modal-overlay/.modal-content classes that exist nowhere in the CSS, so it rendered in document flow at the bottom of the page instead of as an overlay. Converted to the fixed-overlay pattern its sibling modals in the same file already use.

Note: on the parts redesign branch (#36) the part page's .part-layout centers its column tracks; that composes cleanly with this change (tracks center within the bounded main). Neither PR depends on the other to merge.

🤖 Generated with Claude Code

Content width becomes a global budget: .main is bounded to
--content-max and centered, so wide viewports split slack symmetrically
instead of pooling it right of left-anchored pages (issue tickets being
the worst case). Chrome stays full-bleed; the breadcrumb bar aligns its
text to the centered content edge. ok.panel(max_width=...) panels now
self-center, and the survey pass fixed the stragglers that bounded by
hand without centering (settings index, project wizard, docs,
styleguide). The exec-tabs strip is content, not chrome — comment
updated to match its behavior under the bounded main.

Also converts the scrap modal on the OPAL detail page to a real fixed
overlay: it referenced .modal-overlay/.modal-content classes that exist
nowhere, so it rendered in document flow at the bottom of the page —
pre-existing, surfaced by the width survey.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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