Skip to content

fix(404): restore the navbar logo on the 404 page#11661

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/jd/fix/404-page-layout/restore-navbar-logo-404-page--564d279c
May 27, 2026
Merged

fix(404): restore the navbar logo on the 404 page#11661
mergify[bot] merged 1 commit into
mainfrom
devs/jd/fix/404-page-layout/restore-navbar-logo-404-page--564d279c

Conversation

@jd
Copy link
Copy Markdown
Member

@jd jd commented May 27, 2026

The 404 page renders <Header /> without a <LeftSidebar />, but the
docs Header CSS assumes a sidebar exists at >=50em:

  • header { left: var(--theme-left-sidebar-width); } shifts the navbar
    right, leaving a 17rem empty gap on the left of the 404 navbar
  • .logo-mobile { display: none; } hides the in-header logo on the
    assumption that the sidebar's own logo takes over — but the sidebar
    isn't there, so the 404 page renders with no logo at all

Override both rules on the 404 page so the header sits flush with the
viewport edge and the mobile-style logo stays visible at all widths.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

The 404 page renders `<Header />` without a `<LeftSidebar />`, but the
docs Header CSS assumes a sidebar exists at >=50em:

- `header { left: var(--theme-left-sidebar-width); }` shifts the navbar
  right, leaving a 17rem empty gap on the left of the 404 navbar
- `.logo-mobile { display: none; }` hides the in-header logo on the
  assumption that the sidebar's own logo takes over — but the sidebar
  isn't there, so the 404 page renders with no logo at all

Override both rules on the 404 page so the header sits flush with the
viewport edge and the mobile-style logo stays visible at all widths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Change-Id: I564d279c3dd61fc810b96c0a28740ca5f4dcd940
Copilot AI review requested due to automatic review settings May 27, 2026 09:34
@mergify mergify Bot deployed to Mergify Merge Protections May 27, 2026 09:34 Active
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 27, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the 404 page styling to account for the fact that it renders the global Header without the docs LeftSidebar, ensuring the header isn’t offset and the logo remains visible on wide viewports.

Changes:

  • Override the header’s desktop left offset on the 404 page to keep the navbar flush with the viewport.
  • Override the desktop rule that hides .logo-mobile so the in-header logo stays visible on the 404 page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mergify mergify Bot requested a review from a team May 27, 2026 09:36
@jd jd marked this pull request as ready for review May 27, 2026 09:40
@mergify mergify Bot requested a review from a team May 27, 2026 09:54
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 27, 2026

Merge Queue Status

This pull request spent 6 minutes in the queue, including 4 minutes 42 seconds running CI.

Required conditions to merge

mergify Bot added a commit that referenced this pull request May 27, 2026
@mergify mergify Bot added the queued label May 27, 2026
mergify Bot added a commit that referenced this pull request May 27, 2026
@mergify mergify Bot merged commit a61df78 into main May 27, 2026
9 checks passed
@mergify mergify Bot deleted the devs/jd/fix/404-page-layout/restore-navbar-logo-404-page--564d279c branch May 27, 2026 10:10
@mergify mergify Bot removed the queued label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants