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

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git


The following commit(s) were added to refs/heads/master by this push:
     new 46c20b3  fix(toc): fix content scroll bar
46c20b3 is described below

commit 46c20b38f43e060b4ba4384bc6367939c640bc08
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Thu May 5 12:53:27 2022 +0800

    fix(toc): fix content scroll bar
---
 layouts/default.vue | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/layouts/default.vue b/layouts/default.vue
index 4783f26..2f9fe78 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -215,9 +215,12 @@ body {
   left: 77%;
   width: 21%;
   top: 65px;
+  bottom: 20px;
+  display: flex;
+  flex-direction: column;
   background-color: transparent;
   padding: 10px;
-  height: auto;
+  overflow: hidden;
 
   @media (max-width: 768px) {
     position: relative;
@@ -234,8 +237,10 @@ body {
   }
 
   ul {
-    padding-left: 0px;
+    padding-left: 0;
     margin-bottom: 0;
+    flex-grow: 1;
+    overflow: auto;
 
     li {
       list-style: none;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to