Repository navigation
fix(flame): tighten content and toc spacing on narrow desktops - #504
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This standard review covers a CSS-only change to the @docubook/flame docs layout and its patch changeset. Overall verdict: READY, with no findings.
- Responsive article/TOC spacing (Ask AI closed): at
>= 1024px, pages with a TOC now getclamp()-based article padding and TOCpadding-left, and#toc-islandmin-widthdrops from 240px to 192px. The clamps reach their old 48px/48px/16px values at about 1600–1800px, so wide screens look the same as before. - Narrower dot rail (Ask AI docked, 1024–1279px):
#toc-islandand.toc-dotsshrink from 44px to 36px, which still fits the 28px.toc-dots-track/.toc-dot-link. When a TOC is present, the article's right padding drops to 8px. - Changeset: adds a
@docubook/flamepatch entry for this user-facing layout change.
Checks I made:
- Rules apply over Tailwind: the new rules sit outside any
@layer, so they take priority over thelg:px-12,min-w-[240px]andlg:px-4utilities in[[...slug]].tsx. The existing Ask AI rules already rely on this. - Rule order: the narrow-band rules match or exceed the base rules' specificity and come later in the file, so they win.
- No-TOC pages unchanged: they are excluded by
:has(> #toc-island)and keep themx-auto max-w-[820px]layout. - Older browsers: a browser without
:has()support ignores the new article-padding rules and keeps the previous 48px padding. - No cache bump needed:
globals.cssis already a build-cache key input, soBUILD_CACHE_VERSIONdoes not need to change.
claude-opus-5-5 | 𝕏
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.

Summary
At 1024px, the full TOC's minimum width and combined padding left only 342px for the article, separated from the TOC by 64px. Responsive padding and a smaller TOC minimum width increase reading space to approximately 428px and reduce that gap to 25px.
Changes
Verification
Agent Context