Repository navigation
Project pages: sticky header and side navigation - #4
Merged
Merged
Conversation
The app header (breadcrumbs) is sticky on pages with the project workbench, and the side navigation is pinned below it with its own scroll when it is taller than the window. The page itself still scrolls, so wheel, keyboard, find-in-page and anchors behave as before; anchor targets now stop below the header. app.js keeps --header-h in sync with the header's height, which grows when breadcrumbs wrap. Narrow screens (720 px and below), where the navigation stacks above the content, keep the previous non-sticky layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
On project pages, the header (logo, breadcrumbs, account menu) and the left side navigation stay in place while the main area scrolls.
.app-headerisposition: stickyon pages that have the project workbench (body:has(.workbench)). Other pages are unchanged.top: var(--header-h), full window height). It scrolls on its own when it's taller than the window..doc-section,.doc-element) now stop below the header instead of underneath it.app.jskeeps--header-hin sync with the header height using aResizeObserver, because the header grows when the breadcrumbs wrap.Test plan
Checked in Chromium (Playwright) against the dev app:
#baseline: the section heading lands at 76 px, below the 60 px header.--header-h, header not sticky).--header-his 0.🤖 Generated with Claude Code