FE-1455: Tighten the docs site chrome - #9255
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 17:23
b07f10d to
b6bb9d9
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 17:32
b6bb9d9 to
8cfa90e
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 19:01
8cfa90e to
2e01c2a
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 19:08
2e01c2a to
057f176
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 19:27
057f176 to
6cfd170
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
2 times, most recently
from
August 19, 2026 19:41
6cfd170 to
1bed1ae
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 22:16
df6c6af to
f3ea280
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 22:54
f3ea280 to
ff97806
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 22:56
ff97806 to
d51d057
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 19, 2026 23:45
d51d057 to
40cc9bc
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 20, 2026 00:26
40cc9bc to
86a44a6
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 20, 2026 00:29
86a44a6 to
e66c571
Compare
kube
force-pushed
the
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
branch
from
August 20, 2026 00:50
e66c571 to
cb030e7
Compare
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 is the purpose of this PR?
Implements FE-1455: the docs site ran on Starlight's defaults, which spent most of the width on the two side panels, and the header carried an oversized logo and title. Diagrams sat in square-cornered frames next to rounded cards.
Content column at 1440px: 720px → 869px, and 1024px with the sidebar collapsed.
Top of stack #9226, on FE-1457.
apps/petrinaut-docsonly; the bundle stays host-neutral.🔗 Related links
🔍 What does this change?
src/styles/chrome.css, registered as StarlightcustomCss): sidebar 18.75rem → 15rem, content 45rem → 56rem. Starlight sizes both panels from--sl-sidebar-width, so the left nav gets its own--pnd-sidebar-widthin the two places Starlight consumes it; collapsing it no longer gives the table of contents a negative width.src/components/SiteTitle.astro): a toggle button and a drag handle.SiteTitleis the only overridable component in the fixed header, which is the chrome that stays on screen when the pane is gone. Collapsing setsdata-pnd-sidebaron the root and widens content to 64rem; the handle resizes between 176px and 480px, with arrow-key support. Both persist inlocalStorage, restored by aheadscript that runs before the first stylesheet so a collapsed sidebar never renders open first.0.09emletter-spacing.0.5remradius and acolor-mixborder, the same values.arch-carduses, so a diagram frame matches the cards in both themes. The SVG interior is untouched.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
SiteTitleoverride.🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🛡 What tests cover this?
Presentation only, so no unit tests.
turbo run build --filter @apps/petrinaut-docspasses (61 pages) andlint:tsccovers the component.Checked in the browser on generated and authored pages, in dev and in the production preview: 1440px, 1024px and 375px, light and dark. The toggle persists across a reload with no flash, drag and arrow keys resize and clamp, both controls hide at 375px where the mobile drawer still works, and no page overflows horizontally.
❓ How to test this?
turbo run dev --filter @apps/petrinaut-docs🐾 Next steps
Collapsed content width is 64rem rather than the 68rem a 1440px viewport allows, because at 68rem the column sat flush against the edge.
🤖 Generated with Claude Code