modify zentao bug/task/story card page's srollbar and actionbar

This commit is contained in:
chaideqing
2021-11-24 10:50:51 +08:00
parent 052157902a
commit 70677f0673
10 changed files with 39 additions and 26 deletions
+3 -5
View File
@@ -6,13 +6,11 @@
#mainContent .col-4 {display: none;}
.modal-dialog {width: 90%;}
#mainMenu {position: fixed; width: 100%; z-index: 999;}
#wholeContent {margin-top: 35px; height: calc(100% - 90px); display: block; overflow: hidden;}
#wholeContent:hover{overflow: overlay;}
#scrollContent {margin-top: 35px; height: calc(100% - 70px); display: block; overflow: hidden;}
#scrollContent:hover{overflow: overlay;}
html, body, #main, .container { height: 100%;}
#actionbox {display: none;}
body * {font-size: 13px !important; line-height: 1.42857143; color: rgb(51, 51, 51);}
.page-title > .label-id {min-width: 25px; line-height: 13px;}
::-webkit-scrollbar {width: 10px; height: 10px;}
::-webkit-scrollbar-thumb:vertical {box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%), inset 0 -1px 0 rgb(0 0 0 / 7%); background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; opacity: 0; transition: opacity 0.1s;}
.m-bug-view:hover{overflow: overlay;}
.m-bug-view{overflow: hidden;}
.btn span{line-height: 16px; vertical-align: middle;}
+6 -3
View File
@@ -28,8 +28,11 @@ $(function()
xuanAction += "<a href='" + url + "'" + title + target + btnClass + '>' + action + "</a>";
});
xuanAction += '</div>';
$('body').append(xuanAction);
if(xuanAction != "<div class='xuancard-actions fixed'>"){
xuanAction += '</div>';
$('body').append(xuanAction);
}else{
$('#scrollContent').css('height', 'calc(100% - 36px)');
}
$('.xuancard-actions a.iframe').modalTrigger();
})
+4 -2
View File
@@ -38,7 +38,7 @@
<?php endif;?>
</div>
<?php if($this->app->getViewType() == 'xhtml'):?>
<div id="wholeContent">
<div id="scrollContent">
<?php endif;?>
<div id="mainContent" class="main-row">
<div class="main-col col-8">
@@ -68,7 +68,9 @@
?>
</div>
<?php $this->printExtendFields($bug, 'div', "position=left&inForm=0&inCell=1");?>
<div class='cell'><?php include '../../common/view/action.html.php';?></div>
<?php if($this->app->getViewType() != 'xhtml'):?>
<div class="cell"><?php include '../../common/view/action.html.php';?></div>
<?php endif;?>
<?php
$params = "bugID=$bug->id";
$extraParams = "extras=bugID=$bug->id";