From 58327780051282bf8d4fae203b994c6e09e553c7 Mon Sep 17 00:00:00 2001 From: Devesh36 <142524747+Devesh36@users.noreply.github.com> Date: Sun, 11 Oct 2026 21:22:10 +0530 Subject: [PATCH 1/2] fix: preserve mobile navbar theme toggle visibility --- src/css/custom.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index cb95cfbc..06660083 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -650,10 +650,9 @@ figure img { height: 1rem; } -/* Ensure theme toggle aligns with icons */ +/* Preserve Docusaurus's mobile hiding rule for the theme toggle wrapper. */ .navbar__items--right > div, .navbar__items--right button { - display: flex !important; align-items: center !important; margin: 0 !important; } From 85bcda2df9a589b2852c539681ce4125b092328d Mon Sep 17 00:00:00 2001 From: Devesh36 <142524747+Devesh36@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:08:24 +0530 Subject: [PATCH 2/2] fix: keep mobile theme toggle beside search --- src/css/custom.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/css/custom.css b/src/css/custom.css index 06660083..a7cf84a3 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -650,13 +650,21 @@ figure img { height: 1rem; } -/* Preserve Docusaurus's mobile hiding rule for the theme toggle wrapper. */ +/* Keep the theme toggle visible alongside the other navbar controls. */ .navbar__items--right > div, .navbar__items--right button { + display: flex !important; align-items: center !important; margin: 0 !important; } +@media (max-width: 996px) { + /* Keep search in the flex row instead of positioning it over the toggle. */ + .navbar__items--right > div { + position: static; + } +} + .navbar .dropdown__menu { min-width: 11rem; padding: 0.5rem;