This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 9529d7a4dcc fix: docs search icon overlapping (#1719) (#1752)
9529d7a4dcc is described below

commit 9529d7a4dccacefbce355146d6ba3480e3f11500
Author: Sujan Thapa <91601717+siyara...@users.noreply.github.com>
AuthorDate: Thu Apr 11 07:01:58 2024 +0545

    fix: docs search icon overlapping (#1719) (#1752)
---
 doc/src/css/customTheme.scss    |  4 ----
 doc/src/theme/DocPage/index.tsx | 10 ----------
 2 files changed, 14 deletions(-)

diff --git a/doc/src/css/customTheme.scss b/doc/src/css/customTheme.scss
index f90774165e4..d2d19c99490 100644
--- a/doc/src/css/customTheme.scss
+++ b/doc/src/css/customTheme.scss
@@ -413,10 +413,6 @@ a:hover {
 }
 
 @media only screen and (min-width: 768px) {
-  .react-toggle {
-    display: none;
-  }
-
   .arch-card-caption > p {
     width: 50%;
   }
diff --git a/doc/src/theme/DocPage/index.tsx b/doc/src/theme/DocPage/index.tsx
index e40820fd2f1..99a6b9c97cb 100644
--- a/doc/src/theme/DocPage/index.tsx
+++ b/doc/src/theme/DocPage/index.tsx
@@ -109,18 +109,8 @@ const DocPageContent = ({
   );
 
   useEffect(() => {
-    const childrenCount = 
document.querySelector('.navbar__items--right').childElementCount;
-    const el = document.querySelector('.navbar__items--right').childNodes[
-      childrenCount - 2
-    ] as HTMLDivElement;
-    el.style.display = window.innerWidth > 745 ? 'block' : 'none';
-
     const navbarLink = document.querySelectorAll('.navbar__link')[0] as 
HTMLAnchorElement;
     navbarLink.innerText = navbarLinkMap[currentPage];
-
-    return () => {
-      el.style.display = 'none';
-    };
   }, []);
 
   const toggleSidebar = useCallback(() => {

Reply via email to