You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/07/26 09:58:50 UTC

[shardingsphere] branch master updated: Fix doc left menu (#19577)

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

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new fde1b1c572d Fix doc left menu (#19577)
fde1b1c572d is described below

commit fde1b1c572dd21a76958e8a1f9e2cd9dd8e8d345
Author: davidChan3000 <ch...@163.com>
AuthorDate: Tue Jul 26 17:58:44 2022 +0800

    Fix doc left menu (#19577)
    
    * feat:fix optimize left menu usage
    
    * feat:fixed mobile left menu bug
---
 docs/document/static/css/theme-white.css                 | 6 +++++-
 docs/document/themes/hugo-theme-learn/static/js/learn.js | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/document/static/css/theme-white.css b/docs/document/static/css/theme-white.css
index 4889dacfabf..b0ecf6e0f97 100644
--- a/docs/document/static/css/theme-white.css
+++ b/docs/document/static/css/theme-white.css
@@ -73,7 +73,10 @@ header .select-style select{
 }
 
 #sidebar .leftMenu{
-    overflow-y: auto;
+    -ms-touch-action: auto;
+    touch-action: auto;
+    overflow: scroll;
+    -webkit-overflow-scrolling: touch;
 }
 
 #header-wrapper{
@@ -128,6 +131,7 @@ header .select-style select{
 #sidebar .highlightable{
     position:sticky;
     top:48px;
+    overflow: hidden;
 }
 
 #sidebar ul.topics > li.parent, #sidebar ul.topics > li.active{
diff --git a/docs/document/themes/hugo-theme-learn/static/js/learn.js b/docs/document/themes/hugo-theme-learn/static/js/learn.js
index f62ecae8e84..1eab1a10e65 100644
--- a/docs/document/themes/hugo-theme-learn/static/js/learn.js
+++ b/docs/document/themes/hugo-theme-learn/static/js/learn.js
@@ -90,7 +90,7 @@ jQuery(document).ready(function() {
     });
 
     var sidebarStatus = searchStatus = 'open';
-    $('#sidebar .highlightable').perfectScrollbar();
+    $('#sidebar .leftMenu').perfectScrollbar();
     setMenuHeight();
 
     jQuery('#overlay').on('click', function() {