Skip to content

docs: footer stays at the bottom of short pages - #100

Merged
echarles merged 1 commit into
mainfrom
fix/docs-footer
Nov 20, 2026
Merged

echarles merged 1 commit into
mainfrom
fix/docs-footer

Conversation

@echarles

Copy link
Copy Markdown
Member

Primer's BaseStyles div sits between #__docusaurus (a column flex box) and the navbar, .main-wrapper and footer, so .main-wrapper's flex: 1 no longer filled the viewport and the footer rose on short pages (404, short Markdown pages). The div now grows in the root and is a column flex box itself.

BaseStyles' div sits between #__docusaurus (a column flex box) and the navbar, .main-wrapper and footer. It now grows in the root and is a column flex box itself, so .main-wrapper's flex: 1 fills short pages (404, short Markdown pages) again.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 18:43
@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a Binder on branch datalayer/jupyter-server-nbmodel/fix%2Fdocs-footer

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

🟢 Approval recommended

No active review issues block the wrapper layout change intended to keep short-page footers at the viewport bottom.

No open issues 🎉

What changed in this PR

Keeps the documentation footer at the bottom of short pages by restoring flex growth through Primer’s BaseStyles wrapper.

Changes:

  • Makes the wrapper a growing column flex container so .main-wrapper can fill available space.
  • Adds a comment explaining the layout requirement while preserving inherited typography and color.
File Description
docs/​src/​theme/​PrimerRoot.tsx Adds flex layout styles to the Primer wrapper to keep short-page footers at the viewport bottom.

Review effort: Balanced

@echarles
echarles merged commit 1bb275c into main Nov 20, 2026
8 of 9 checks passed
@echarles
echarles deleted the fix/docs-footer branch November 20, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants