From f2a32ae0f6524ad64598466888425f48a38d9879 Mon Sep 17 00:00:00 2001 From: BK <4480581+Bilal-io@users.noreply.github.com> Date: Sun, 15 May 2022 14:08:33 -0700 Subject: [PATCH 1/3] Fix docs version switcher to display latest first Changes the old sorting which displays master then the oldest to newest, so that it would display master followed by the newest version --- docs/template.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/template.html b/docs/template.html index 841999281..c5bdd64f4 100644 --- a/docs/template.html +++ b/docs/template.html @@ -500,6 +500,7 @@ } addVersionLink('master'); + versions.reverse(); Array.prototype.forEach.call(versions, function (version, i) { addVersionLink(version); }); From 5e648c29edd4a11c0cedb88c0c3c6798f7081791 Mon Sep 17 00:00:00 2001 From: BK <4480581+Bilal-io@users.noreply.github.com> Date: Sun, 15 May 2022 14:13:54 -0700 Subject: [PATCH 2/3] Fixes the overflow in the docs' version switcher hides the scroll bar from the overflow switcher and displays a vertical scroll when the panel is expanded. --- docs/assets/style.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/assets/style.css b/docs/assets/style.css index 649f84b7a..7c7b8db1b 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -542,10 +542,13 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before { left: auto; max-height: 600px; max-width: 300px; - overflow: scroll; + overflow: hidden; right: 20px; width: auto; } +.rst-versions.rst-badge.shift-up { + overflow-y: scroll; +} .rst-versions.rst-badge .icon-book { float: none } From 712954560a7dfc2a580a6710ceda835138c3155e Mon Sep 17 00:00:00 2001 From: BK <4480581+Bilal-io@users.noreply.github.com> Date: Sun, 15 May 2022 14:17:25 -0700 Subject: [PATCH 3/3] fixes version switcher height The panel expands to a max-height of 600, and shrinks to 100vh - 100px on browsers with height smaller than 600px. --- docs/assets/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assets/style.css b/docs/assets/style.css index 7c7b8db1b..25b8c2e86 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -540,6 +540,7 @@ ul.fas li .fa-large:before, ul.fas li .fa-large:before { bottom: 20px; display: block; left: auto; + height: calc(100vh - 100px); max-height: 600px; max-width: 300px; overflow: hidden;