Przeglądaj źródła

优化左侧框

ellisran 1 rok temu
rodzic
commit
81a7a5b63d
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      app/public/js/file_detail.js
  2. 2 2
      app/view/file/file.ejs

+ 2 - 2
app/public/js/file_detail.js

@@ -19,7 +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());
+            $('#filing').height($(".sjs-height-0").height()-$('.d-flex',".sjs-height-0").height() - 10);
             this.fileOrderKey = 'fileOrder';
             this.fileOrder = getLocalCache(this.fileOrderKey) || 'create_time|desc';
         }
@@ -1178,4 +1178,4 @@ $(document).ready(function() {
             }, 100);
         });
     })('a[name=showLevel]');
-});
+});

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

@@ -12,7 +12,7 @@
     <div class="content-wrap">
         <div class="c-body">
             <div class="sjs-height-0 row">
-                <div class="col-3">
+                <div class="col-3 border-right pr-0">
                     <div class="d-flex flex-row">
                         <div class="btn-group">
                             <button type="button" class="btn btn-sm  text-primary dropdown-toggle" data-toggle="dropdown" id="zhankai" aria-expanded="false">显示层级</button>
@@ -71,4 +71,4 @@
     const filing = JSON.parse(unescape('<%- escape(JSON.stringify(filing)) %>'));
     const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
     const whiteList = JSON.parse('<%- JSON.stringify(ctx.app.config.multipart.whitelist) %>');
-</script>
+</script>