From d840e25da50c75cf42733f9fd5b406ae422e8845 Mon Sep 17 00:00:00 2001 From: guofeilong Date: Thu, 6 Apr 2023 16:09:22 +0800 Subject: [PATCH 1/3] * Adjust code for show-icon in left-tree . --- module/doc/view/lefttree.html.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 3c6b196d2e..e3d9010922 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -335,7 +335,7 @@ $(function() }).on('mouseout', 'a', function() { - $(this).find('.icon').addClass('hidden'); + if(!$(this).closest('a').hasClass('hover')) $(this).find('.icon').addClass('hidden'); $(this).removeClass('show-icon'); }).on('click', 'a', function() { @@ -444,8 +444,12 @@ $(function() if($dropdown.length) { var dropdown = $dropdown.data(); - var $hoverItem = $('#' + $dropdown.data('treeId')).find('li.hover'); - $hoverItem.removeClass('hover'); + var $hoverItem = $('#' + $dropdown.data('treeId')).find('a.hover'); + if($hoverItem.length) + { + $hoverItem.removeClass('hover'); + $hoverItem.find('.icon').addClass('hidden'); + } $dropdown.remove(); } }).on('click', '.sidebar-toggle', function() From c846da6bf3498f64d81ad35b73ab2e69ebbb9b8d Mon Sep 17 00:00:00 2001 From: guofeilong Date: Thu, 6 Apr 2023 16:15:58 +0800 Subject: [PATCH 2/3] * Adjust code for hover in tree . --- module/doc/view/lefttree.html.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index e3d9010922..f6225df807 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -274,6 +274,9 @@ $(function() ele.on('click', '.icon-drop', function(e) { var $icon = $(this); + $('.icon-drop').addClass('hidden'); + $(this).removeClass('hidden'); + $('#fileTree').find('a.hover').removeClass('hover'); $('.dropdown-in-tree').remove(); var isCatalogue = $icon.attr('data-isCatalogue') === 'false' ? false : true; var dropDownID = isCatalogue ? 'dropDownCatalogue' : 'dropDownLibrary'; From 828cc038ecd9f841b4c134f59a40672f42a33903 Mon Sep 17 00:00:00 2001 From: guofeilong Date: Thu, 6 Apr 2023 16:46:47 +0800 Subject: [PATCH 3/3] * Adjust code . --- module/doc/css/view.css | 1 + 1 file changed, 1 insertion(+) diff --git a/module/doc/css/view.css b/module/doc/css/view.css index ce035628a2..510a575687 100644 --- a/module/doc/css/view.css +++ b/module/doc/css/view.css @@ -31,6 +31,7 @@ .outline-content a {color: #838A9D;} .outline-content li.text-ellipsis.active>a {font-weight: 700; color: #0c64eb;} #outline li.has-list.open:before {content: unset;} +#fileTree {margin-bottom: 40px; max-height: calc(100vh - 180px); overflow: auto;} .title {font-size: 20px !important;} .article-content.comment {width: 100% !important;}