* Adjust code .
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user