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

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


The following commit(s) were added to refs/heads/master by this push:
     new a9cf117ed1ed [feat] recover level1 sider (#423)
a9cf117ed1ed is described below

commit a9cf117ed1ed8ef21fec36326915c613b8acaaa7
Author: Jeffrey <[email protected]>
AuthorDate: Tue Mar 19 17:16:31 2024 +0800

    [feat] recover level1 sider (#423)
---
 src/scss/_variables.scss                     |  1 +
 src/theme/DocSidebarItem/Category/index.tsx  |  4 +---
 src/theme/DocSidebarItem/Category/style.scss | 21 ++-------------------
 3 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss
index ec0cb5e53bcb..93e8b95782c7 100644
--- a/src/scss/_variables.scss
+++ b/src/scss/_variables.scss
@@ -60,4 +60,5 @@ html[lang='en-US'] {
     --global-header-height: 5rem;
     --global-sidebar-width: 20rem;
     --doc-sidebar-width: 20rem !important;
+
 }
diff --git a/src/theme/DocSidebarItem/Category/index.tsx 
b/src/theme/DocSidebarItem/Category/index.tsx
index cfbfb9af81ee..150cb04a57f6 100644
--- a/src/theme/DocSidebarItem/Category/index.tsx
+++ b/src/theme/DocSidebarItem/Category/index.tsx
@@ -79,7 +79,7 @@ export default function DocSidebarItemCategory({ item, 
onItemClick, activePath,
             if (!collapsible) {
                 return false;
             }
-            return isActive || level === 1 ? false : item.collapsed;
+            return isActive ? false : item.collapsed;
         },
     });
     const { expandedItem, setExpandedItem } = 
useDocSidebarItemsExpandedState();
@@ -121,7 +121,6 @@ export default function DocSidebarItemCategory({ item, 
onItemClick, activePath,
                     onClick={
                         collapsible
                             ? e => {
-                                  if (level === 1) return;
                                   onItemClick?.(item);
                                   if (href) {
                                       updateCollapsed(false);
@@ -131,7 +130,6 @@ export default function DocSidebarItemCategory({ item, 
onItemClick, activePath,
                                   }
                               }
                             : () => {
-                                  if (level === 1) return;
                                   onItemClick?.(item);
                               }
                     }
diff --git a/src/theme/DocSidebarItem/Category/style.scss 
b/src/theme/DocSidebarItem/Category/style.scss
index beb4682f6bf4..92136cc7caf3 100644
--- a/src/theme/DocSidebarItem/Category/style.scss
+++ b/src/theme/DocSidebarItem/Category/style.scss
@@ -1,18 +1,4 @@
 .theme-doc-sidebar-menu.menu__list {
-    .theme-doc-sidebar-item-category-level-1 {
-        padding-bottom: 1.375rem;
-        padding-top: 1.375rem;
-        border-bottom: 1px solid #edf2fa;
-        margin-top: 0;
-        .menu__link.menu__link--sublist-caret.menu__link_level_1 {
-            &:after {
-                display: none;
-            }
-            color: #8592a6;
-            font-weight: 500;
-            font-size: 12px;
-        }
-    }
     .menu__link_level_2.menu__link {
         color: #1d1d1d !important;
     }
@@ -30,8 +16,8 @@
         a.menu__link {
             line-height: 2rem;
             padding: 0 0.625rem;
-            color: #4c576c;
-            font-size: 14px;
+            // color: #4c576c;
+            // font-size: 14px;
             font-weight: 400;
             &:hover {
                 background-color: rgba(237, 242, 250, 0.5) !important;
@@ -49,9 +35,6 @@
         margin-left: 0.625rem;
         border-left: 1px solid #dfe5f0;
     }
-    .menu__list_level_2 {
-        padding-left: 0;
-    }
 }
 .menu__list-item .menu__link--sublist:after,
 .menu__list-item .menu__caret:before {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to