From 487214058b3913fb4fa9056bf8fa01e3cb8937b8 Mon Sep 17 00:00:00 2001 From: guofeilong Date: Fri, 14 Apr 2023 15:07:34 +0800 Subject: [PATCH] * Adjust code for icon replace img . --- module/doc/view/lefttree.html.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 9670122757..b0f55cf693 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -56,6 +56,7 @@ i.btn-info, i.btn-info:hover {border: none; background: #fff; box-shadow: unset; [lang^=zh] #leftBar .selectBox #currentItem {width: 180px;} #leftBar .selectBox #currentItem > .text {overflow: hidden; text-align: left; flex: 0 1 100%;} .dropdown-in-tree {max-height: 293px; overflow-y: auto;} +.before-tree-item {flex: 0 0 14px; margin-right: 5px;} '; $item += '
'; - if((libClass == 'lib' && item.type != 'execution') || (item.type == 'execution' && item.hasAction)) $item += '
'; + if((libClass == 'lib' && item.type != 'execution') || (item.type == 'execution' && item.hasAction)) $item += ''; if(['text', 'word', 'ppt', 'excel'].indexOf(item.type) !== -1) $item += '
'; $item += '
'; $item += item.name; @@ -355,13 +356,13 @@ $(function() var libClass = '.' + moduleType + 'LibDorpdown'; if(!$(this).hasClass('lib')) libClass = '.' + moduleType + 'ModuleDorpdown'; - $(this).find('.icon').removeClass('hidden'); + $(this).find('.icon-drop').removeClass('hidden'); $(this).addClass('show-icon'); if($(libClass).find('li').length == 0) return false; }).on('mouseout', 'a', function() { - if(!$(this).closest('a').hasClass('hover')) $(this).find('.icon').addClass('hidden'); + if(!$(this).closest('a').hasClass('hover')) $(this).find('.icon-drop').addClass('hidden'); $(this).removeClass('show-icon'); }).on('click', 'a', function() {