Explorar o código

滚动条问题

MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
60078d03e7
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 0
      app/public/js/file_detail.js
  2. 0 2
      app/view/file/file.ejs

+ 1 - 0
app/public/js/file_detail.js

@@ -19,6 +19,7 @@ $(document).ready(function() {
             const cache = getLocalCache(this.expandKey);
             this.expandCache = cache ? _.uniq(cache.split(',')) : [];
             this.curFilingKey = 'cur-filing-' + window.location.pathname.split('/')[2];
+            $('#filing').height($(".sjs-height-0").height()-$('.d-flex',".sjs-height-0").height());
         }
         calcTotalFileCount() {
             this.dragTree.recursiveFun(this.dragTree.children, x => {

+ 0 - 2
app/view/file/file.ejs

@@ -27,8 +27,6 @@
                         <% if (canFiling) { %>
                         <div class="p-2"><a href="javascript: void(0);" id="add-slibing">添加同级</a></div>
                         <div class="p-2"><a href="javascript: void(0);" id="add-child">添加子级</a></div>
-                        <% } else { %>
-                        <div class="p-2 ml-2">分类目录</div>
                         <% } %>
                     </div>
                     <ul id="filing" class="ztree" style="overflow: auto"></ul>