Skip to content

Align the landing page with other pages' sidebar gap - #909

Merged
enesgules merged 2 commits into
mainfrom
fix/landing-sidebar-gap
Oct 9, 2026
Merged

enesgules merged 2 commits into
mainfrom
fix/landing-sidebar-gap

Conversation

@enesgules

@enesgules enesgules commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

The landing page (introduction.mdx, mode: frame) sat a different distance from the sidebar than other pages, and the difference changed with the window width.

Why: mode: frame gives the page the whole content area with no inset. .u-wrap centered itself in that area, so the gap was (area − 1068px) / 2 + 24px. Other pages start the article at docs7's column inset.

Fix: .u-wrap starts at the same inset as the article on other pages. Below lg, the inset is the page gutter (24/36/44px). From lg up, it is docs7's --docs-column-gap (+ --docs-panel-inset from xl). The content width keeps the old 1020px maximum.

Deploy order: merge after upstash/docs7#506. That PR stops docs7 from centering articles that have no ToC. Before #506, normal pages add a centering offset, and the landing does not match them.

Gap from the sidebar to the h1 (from the window edge below 1024px), measured on a local docs7 renderer with #506. Columns: landing, /qstash/sdks/ts/overview (no ToC), /redis/overall/getstarted:

Width Landing before After (all three pages)
375 24 24
800 24 44
1000 24 44
1280 24 48
1512 86 48
1920 113 96

@mintlify

mintlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
upstash 🟢 Ready View Preview Oct 8, 2026, 3:49 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@context7

context7 Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Docs7 for upstash.com

Result Status Action
Deployment ✅ Ready Open preview
Content review ⏳ In progress —

Commit 1abd6a9 · Updated 2026-10-08 15:52 UTC · View build details

@context7
context7 Bot temporarily deployed to Docs7 Preview: fix/landing-sidebar-gap October 8, 2026 13:00 Destroyed
@context7
context7 Bot temporarily deployed to Docs7 Preview: fix/landing-sidebar-gap October 8, 2026 15:52 Destroyed

@ramazanoacar ramazanoacar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM once docs7#506 is deployed. I checked the numbers against the renderer: 24/36/44 px match PAGE_GUTTER (px-6 sm:px-9 md:px-11), the lg/xl steps match columnPad (lg:px-(--docs-column-gap), xl:pl-[calc(var(--docs-column-gap)+var(--docs-panel-inset))]), the variables are defined on :root[data-docs-theme="mint"] so .u-wrap can read them, and 63.75rem content-box plus the 24 px inset reproduces the old 1068 px. The comment pointing at page-gutter.ts is the right breadcrumb for the coupling.

The link-rot failure is not this PR: the last three merged PRs report the same 52 broken links.

One caveat: this encodes #506's fixed-inset rule. If the review there lands on Mintlify-style centering instead, this CSS needs to follow, so hold the merge until that is settled.

Copilot AI 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.

🟢 Approval recommended

The focused CSS change consistently implements the documented responsive spacing behavior.

0 open findings

What changed in this PR

Aligns the framed landing page’s content inset and maximum width with standard documentation pages.

Changes:

  • Adds responsive page gutters below lg.
  • Uses docs7 column and panel spacing variables at larger widths.
  • Preserves the existing 1020px content maximum.
File Description
style.css Updates responsive landing-page width and inset rules.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@enesgules
enesgules merged commit 75e1c1f into main Oct 9, 2026
5 of 6 checks passed
@enesgules
enesgules deleted the fix/landing-sidebar-gap branch October 9, 2026 11:57

This branch was successfully deployed

1 active deployment
Docs7 Preview: fix/landing-sidebar-gap — 1abd6a94 Deployed Oct 8, 2026 by context7[bot]
staging — 1abd6a94 Deployed Oct 8, 2026 by mintlify[bot]
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.

3 participants