浏览代码

add `overflow-y: scroll` to Sidebar

Artur Paikin 7 年之前
父节点
当前提交
dd071fc98f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      website/themes/uppy/layout/partials/sidebar.ejs
  2. 1 0
      website/themes/uppy/source/css/_page.scss

+ 1 - 1
website/themes/uppy/layout/partials/sidebar.ejs

@@ -11,7 +11,7 @@
     <ul class="menu-root">
     <ul class="menu-root">
       <% site.pages.find({type: type}).sort('order').each(function (p) { %>
       <% site.pages.find({type: type}).sort('order').each(function (p) { %>
         <% var path = p.path.replace(/index\.html$/, ''); %>
         <% var path = p.path.replace(/index\.html$/, ''); %>
-        <% // https://github.com/vuejs/vuejs.org/blob/master/themes/vue/layout/partials/toc.ejs %>
+        <% // see https://github.com/vuejs/vuejs.org/blob/master/themes/vue/layout/partials/toc.ejs %>
         <% if (path === 'docs/plugins/') { %>
         <% if (path === 'docs/plugins/') { %>
           <li>
           <li>
             <h3><a href="/docs/plugins/">Plugins</a></h3>
             <h3><a href="/docs/plugins/">Plugins</a></h3>

+ 1 - 0
website/themes/uppy/source/css/_page.scss

@@ -18,6 +18,7 @@
   transition: all .4s cubic-bezier(0.4, 0, 0, 1);
   transition: all .4s cubic-bezier(0.4, 0, 0, 1);
   transform: translate(-280px, 0);
   transform: translate(-280px, 0);
   z-index: 10;
   z-index: 10;
+  overflow-y: scroll;
 
 
   .main-menu {
   .main-menu {
     margin-bottom: 20px;
     margin-bottom: 20px;