From db55553f004f3081b7e93abb064d4f4307381332 Mon Sep 17 00:00:00 2001 From: guofeilong Date: Wed, 22 Mar 2023 11:08:18 +0800 Subject: [PATCH] * Adjust code . --- module/doc/css/tablecontents.css | 4 ++-- module/doc/js/tablecontents.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/doc/css/tablecontents.css b/module/doc/css/tablecontents.css index 27d523d603..f2a4bf13c7 100644 --- a/module/doc/css/tablecontents.css +++ b/module/doc/css/tablecontents.css @@ -58,10 +58,10 @@ li.drag-shadow ul {display: none!important;} .tree li>.list-toggle {top: 4px;} /* css for sidebar */ -.sidebar-toggle > .icon {position: absolute; top: 50%; left: -1px; width: 12px; height: 30px; margin-top: -10px; line-height: 30px; color: #fff; text-align: center; background: #7dcdfe; border-radius: 6px;} +.sidebar-toggle > .icon {position: absolute; top: 50%; left: 6px; width: 12px; height: 30px; margin-top: -10px; line-height: 30px; color: #fff; text-align: center; background: #7dcdfe; border-radius: 6px; cursor: pointer;} .col-spliter:after {display: none;} -.spliter {flex: 0 0 12px; position: relative;} +.spliter {flex: 0 0 6px; margin-right: 6px;} .spliter-btn {height: 28px; width: 10px; background: #fff; position: absolute; top: 30%; left: -6px; border: 1px solid #D9D9D9; border-radius: 2px;} .spliter-btn > .spliter-inner {width: 4px; height: 12px; border-left: 1px solid #D9D9D9; border-right: 1px solid #D9D9D9;} diff --git a/module/doc/js/tablecontents.js b/module/doc/js/tablecontents.js index 3dd9e6c86f..0792a62c7c 100644 --- a/module/doc/js/tablecontents.js +++ b/module/doc/js/tablecontents.js @@ -149,7 +149,7 @@ $(function() function refreshDropdown(option) { - $('#' + option.id).css({ + $('#' + option.type).css({ 'display': 'unset', 'left': option.left, 'top': option.top @@ -326,10 +326,11 @@ $(function() $(this).addClass('icon-angle-right isHide'); $('#sideBar').addClass('hidden'); } - }).on('mousemove', function() + }).on('mousemove', function(e) { if(!$('#sideBar.hidden').length) $(this).find('.spliter-btn').removeClass('hidden'); + $('.spliter-btn').css('top', e.pageY - 120); }).on('mouseout', function() { $(this).find('.spliter-btn').addClass('hidden');