Skip to content

Commit 2bae2ff

Browse files
committed
最大化最小化功能的样式修复
1 parent 8714564 commit 2bae2ff

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ant.mgr/mgr.core/Views/Shared/_HomeLayout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</nav>
4949
<!--左侧导航结束-->
5050
<!--右侧部分开始-->
51-
<div id="page-wrapper" class="gray-bg dashbard-1">
51+
<div id="page-wrapper" class="gray-bg dashbard-1 page-wrapper">
5252
<div class="row border-bottom">
5353
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
5454
<div class="navbar-header">

ant.mgr/mgr.core/wwwroot/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ video {
35263526
padding: 20px;
35273527
}
35283528

3529-
#page-wrapper {
3529+
.page-wrapper {
35303530
padding: 0 15px;
35313531
position: inherit;
35323532
margin: 0 0 0 220px;

ant.mgr/mgr.core/wwwroot/js/hplus.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ function SmoothlyMenu() {
131131
setTimeout(
132132
function () {
133133
$('#side-menu').fadeIn(500);
134+
$('#page-wrapper').attr('style', '');
134135
}, 300);
135136
} else {
136137
$('#side-menu').removeAttr('style');
@@ -288,6 +289,11 @@ function iframeZoom(flag) {
288289
$('.navbar-static-top').show();
289290
$('.footer').show();
290291
$('#content-main').css('height', 'calc(100% - 140px)');
291-
$('#page-wrapper').css('margin', '0 0 0 220px');
292+
293+
if ($('body').hasClass('fixed-sidebar')) {
294+
$('#page-wrapper').attr('style', '');
295+
} else {
296+
$('#page-wrapper').css('margin', '0 0 0 220px');
297+
}
292298
}
293299
}

0 commit comments

Comments
 (0)