Repository navigation
Anchor the docs version dropdown to the version entry - #190
Merged
Merged
Conversation
On wide screens the javadoc navbar content is centered with a max width, but the dropdown was positioned relative to the full-width .top-nav, so it opened at the far right edge of the window, out of reach without leaving the hovered header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🚀 Preview deployed to https://23250ff1.lz4-java-yawk-at.pages.dev |
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.
On the javadoc pages, hovering the version in the top right opened the dropdown at the far right edge of the window on wide screens, so it could not be reached without leaving the hovered header.
The dropdown is
position: absolute; right: 0, and its nearest positioned ancestor on the javadoc pages is the full-width.top-nav, while the javadoc nav content is centered with a max width. This makes each header entryposition: relativeso the dropdown aligns with the version entry, and addswhite-space: nowrapso entries likev1.14.1 (current)don't wrap in the now narrower box.Checked by injecting the CSS into the live javadoc and readme pages at 2400px width: the javadoc dropdown now sits under the version entry, the readme page is unchanged. The site was not rebuilt locally.
🤖 Generated with Claude Code