Skip to content

fix(flame): tighten content and toc spacing on narrow desktops - #504

Merged
gitfromwildan merged 1 commit into
mainfrom
fix/flame-content-toc-spacing
Nov 7, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
fix/flame-content-toc-spacing

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

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

  • Scale article padding and the TOC's left padding with the viewport when a full desktop TOC is present; reduce its minimum width from 240px to 192px.
  • Between 1024px and 1279px, narrow the docked TOC dot rail from 44px to 36px and reduce the adjacent article padding, reclaiming 24px for the content.
  • Add a Flame patch changeset.

Verification

  • Chromium comparison: 60 page/viewport/panel states across Card Group, Plugins, and the no-TOC index; widths 390–1920px, Ask AI closed/open/expanded. No horizontal overflow, card overlap, or browser errors. Mobile, no-TOC, and wide-screen article widths were also checked.
  • Forced production fixture build: 40 pages passed.
  • Formatting and diff checks passed.
  • Pre-push workspace lint, all 7 build tasks, and commitlint passed.
  • Temporary static test servers were closed after verification.

Agent Context

  • owner/repo: DocuBook/docubook
  • branch: fix/flame-content-toc-spacing | base: main
  • created-by: Codex
  • commit: b4c7c60
  • evidence-ref: local logs /tmp/flame-toc-spacing-before.log, /tmp/flame-toc-spacing-after.log, /tmp/flame-toc-spacing-build.log, /tmp/flame-toc-spacing-push.log

@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Nov 7, 2026 3:46pm UTC

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 get clamp()-based article padding and TOC padding-left, and #toc-island min-width drops 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-island and .toc-dots shrink 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/flame patch 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 the lg:px-12, min-w-[240px] and lg:px-4 utilities 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 the mx-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.css is already a build-cache key input, so BUILD_CACHE_VERSION does not need to change.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan gitfromwildan self-assigned this Nov 7, 2026
@gitfromwildan
gitfromwildan merged commit 620eda7 into main Nov 7, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the fix/flame-content-toc-spacing branch November 7, 2026 15:49
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