Procházet zdrojové kódy

界面样式调整

徐滕 před 1 týdnem
rodič
revize
6372b0d892

+ 11 - 5
src/main/webapp/webpage/modules/WorkKnowledgeBase/workKnowledgeBaseIndex.jsp

@@ -292,8 +292,7 @@
 
         resizeLeftRightWindow = function() {
             var height = $(window).height() - 60;
-            $('#leftPanel').css('min-height', height + 'px');
-            $('#rightContent').css('height', height + 'px');
+            $('.kb-layout').css('height', height + 'px');
         };
 
         $(window).resize(function() {
@@ -302,15 +301,17 @@
     </script>
     <style>
         body { background-color: transparent; }
-        .kb-layout { display: flex; width: 100%; min-height: calc(100vh - 60px); }
+        .kb-layout { display: flex; width: 100%; height: calc(100vh - 60px); }
         .kb-left {
             width: 280px;
             min-width: 200px;
             background: #fff;
             border-right: 1px solid #e5e5e5;
-            overflow-y: auto;
             padding: 0;
             flex-shrink: 0;
+            display: flex;
+            flex-direction: column;
+            overflow: hidden;
         }
         .kb-left .left-header {
             background: #5b9bd5;
@@ -321,6 +322,7 @@
             display: flex;
             align-items: center;
             justify-content: space-between;
+            flex-shrink: 0;
         }
         .kb-left .left-header .btn-add-root {
             color: #fff;
@@ -331,6 +333,10 @@
             cursor: pointer;
             background: transparent;
         }
+        .kb-left #treeContainer {
+            flex: 1;
+            overflow-y: auto;
+        }
         .kb-left #treeContainer ul { list-style: none; padding: 0; margin: 0; }
         .kb-left .tree-node-item {
             padding: 7px 12px 7px 12px;
@@ -353,7 +359,7 @@
         .kb-left .tree-node-item .tree-ops a:hover { color: #e94949; }
         .kb-left li ul { padding-left: 0; }
         .kb-right { flex: 1; overflow: hidden; }
-        .kb-right iframe { width: 100%; border: none; display: block; }
+        .kb-right iframe { width: 100%; height: 100%; border: none; display: block; }
     </style>
 </head>
 <body>