fix: version switcher dropdown overflow on smaller screens (#578)#1271
Merged
jonbrenas merged 2 commits intomalariagen:masterfrom Apr 3, 2026
Merged
Conversation
04b68e9 to
728599e
Compare
Contributor
Author
|
Hi @jonbrenas and @ahernank, I've submitted a fix for this issue in PR #1271. |
jonbrenas
approved these changes
Apr 3, 2026
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.
Problem
Fixes #578
The version switcher dropdown extends beyond the viewport on smaller screens, making older versions (including "dev") unreachable.
As seen in the issue screenshot, even on a 21.5-inch screen the dropdown was already cut off. Maintainers temporarily trimmed switcher.json (PRs #602, #727, #843) as a workaround, but as more versions are released this problem will keep recurring.
Solution
Added a custom CSS file that permanently fixes the overflow by limiting the dropdown height to 60% of the viewport and enabling vertical scrolling — so all versions remain accessible on any screen size, regardless of how many versions are in switcher.json in the future.
Changes
docs/source/_static/custom.csswith overflow fixdocs/source/conf.pyTesting
sphinx-build -b html source build/html