diff --git a/website/src/css/docs-secondary-nav.scss b/website/src/css/docs-secondary-nav.scss index c5289d301a4..8b3779d3971 100644 --- a/website/src/css/docs-secondary-nav.scss +++ b/website/src/css/docs-secondary-nav.scss @@ -119,6 +119,17 @@ html.plugin-docs { } } +// The menu is left-aligned with its toggle, which sits about 236px from the +// left edge, so on narrow screens the 170px menu extends past the viewport +// (even while hidden) and makes the page scroll sideways. Align it to the +// toggle's right edge instead. +@media (max-width: 480px) { + [class*="versionDropdown"] .dropdown__menu { + left: auto; + right: 0; + } +} + [data-theme="dark"] [class*="dropdown"] { .dropdown__menu { background-color: color-mix(in srgb, var(--light), black 40%);