Skip to content

Anchor the docs version dropdown to the version entry - #190

Merged
yawkat merged 1 commit into
mainfrom
claude/menu-dropdown-positioning-b412b0
Nov 16, 2026
Merged

yawkat merged 1 commit into
mainfrom
claude/menu-dropdown-positioning-b412b0

Conversation

@yawkat

@yawkat yawkat commented Nov 16, 2026

Copy link
Copy Markdown
Owner

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 entry position: relative so the dropdown aligns with the version entry, and adds white-space: nowrap so entries like v1.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

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>
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to https://23250ff1.lz4-java-yawk-at.pages.dev

@yawkat
yawkat merged commit b56c18d into main Nov 16, 2026
4 checks passed
@yawkat
yawkat deleted the claude/menu-dropdown-positioning-b412b0 branch November 16, 2026 20:09
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.

1 participant