* Fix bug of manage priv btn.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
.flex-center {display: flex; justify-content: center; align-items: center;}
|
||||
#mainContainer {display: flex; gap: 16px; height: calc(100vh - 165px);}
|
||||
#mainContainer > .main {flex: 1 1 75%; overflow-y: auto; padding: 0px; border: 1px solid #FFF; box-sizing: content-box; position: relative;}
|
||||
#mainContainer > .main {flex: 1 1 75%; overflow-y: auto; padding: 0px; border: 1px solid #FFF; box-sizing: content-box;}
|
||||
#mainContainer > .side {flex: 1 1 25%;}
|
||||
#mainContainer .main .btn-group {position: absolute; right: 8px; top: 2px; display: block !important;}
|
||||
#mainContainer .main .btn-group {position: absolute; visibility: hidden; top: 2px; display: inline-block;}
|
||||
.priv-panel {background: #fff; padding: 10px 16px; box-shadow: 0 1px 1px rgb(0 0 0 / 5%), 0 2px 6px 0 rgb(0 0 0 / 5%);}
|
||||
.priv-panel {height: 40%;}
|
||||
.priv-panel .table-empty-tip {padding: calc(15% - 10px) 10px;}
|
||||
|
||||
@@ -380,8 +380,23 @@ function recommendChange($item, checked)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change btn position.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function positionBtn()
|
||||
{
|
||||
var btnLeft = $('.main.main-content > table').width() - 63;
|
||||
$('.main.main-content > .btn-group').css('left', btnLeft).css('visibility', 'unset');
|
||||
}
|
||||
|
||||
$(function()
|
||||
{
|
||||
positionBtn();
|
||||
$('.main.main-content').resize(positionBtn);
|
||||
|
||||
selectedPrivIdList = Object.values(selectedPrivIdList);
|
||||
|
||||
recommedSelect = new Array();
|
||||
|
||||
Reference in New Issue
Block a user