* Adjust code .

This commit is contained in:
guofeilong
2023-03-29 14:50:33 +08:00
parent b2a8c60a3a
commit b1809c1ea6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -12,12 +12,13 @@
/* tree */
.img-lib {flex: 0 0 16px; height: 14px;}
a.lib {margin-bottom: 0;}
.tree-icon {position: absolute; right: 0;}
.tree li > a {max-width: 100%; padding: 2px;}
.file-tree a.show-icon > div {padding-right: 15px;}
.file-tree .tree-text {overflow: hidden;}
.tree li.has-input {overflow: hidden;}
.tree li.has-list.open:before {display: none;}
/* sideBar */
+1 -1
View File
@@ -71,7 +71,7 @@ $(document).ready(function()
var hasChild = item.children ? !!item.children.length : false;
var $item = '<a href="###" style="position: relative" data-has-children="' + hasChild + '" title="' + item.name + '" data-id="' + item.id + '" class="' + libClass + '" data-type="' + item.type + '">';
$item += '<div class="text h-full w-full flex-start overflow-hidden">';
if(libClass == 'lib') $item += '<div class="img-lib" style="background-image:url(static/svg/interfacelib.svg)"></div>';
if(libClass == 'lib') $item += '<div class="img-lib" style="background-image:url(static/svg/interface-doclib.svg)"></div>';
$item += '<div class="tree-text" style="padding-left: 5px;">';
$item += item.name
$item += '</div>';