* Adjust code .

This commit is contained in:
guofeilong
2023-03-22 11:08:18 +08:00
parent 54c532bdda
commit db55553f00
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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;}
+3 -2
View File
@@ -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');