From 60762cc65a4ffcb3614d310a1d5098d1decd4976 Mon Sep 17 00:00:00 2001 From: ngocanhnckh <12997699+ngocanhnckh@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:29:56 +0700 Subject: [PATCH 1/2] ui: keep the docs version dropdown menu inside the viewport on narrow screens The menu is left-aligned with its toggle, so below ~410px wide it extended past the right edge of the viewport and made every docs page scroll sideways, even while hidden. Right-align it to the toggle at 480px and below. --- website/src/css/docs-secondary-nav.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) 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%); From a6e29a038a9399d571338a3f5883959ca8f68d21 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Tue, 24 Nov 2026 09:11:38 +0100 Subject: [PATCH 2/2] remove comment --- website/src/css/docs-secondary-nav.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/website/src/css/docs-secondary-nav.scss b/website/src/css/docs-secondary-nav.scss index 8b3779d3971..0317323fbbc 100644 --- a/website/src/css/docs-secondary-nav.scss +++ b/website/src/css/docs-secondary-nav.scss @@ -119,10 +119,6 @@ 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;