enhanced register & login page min-height

pull/2578/head
REJack 2020-02-25 09:46:35 +01:00
parent 9261d762b7
commit 533a5917f5
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
10 changed files with 12 additions and 12 deletions

View File

@ -140,9 +140,9 @@ const Layout = (($) => {
this.fixLayoutHeight()
})
if (!$('body').hasClass(ClassName.LOGIN_PAGE) && !$('body').hasClass(ClassName.REGISTER_PAGE)) {
if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length === 0) {
$('body, html').css('height', 'auto')
} else if ($('body').hasClass(ClassName.LOGIN_PAGE) || $('body').hasClass(ClassName.REGISTER_PAGE)) {
} else if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length !== 0) {
let box_height = $(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).height()
$('body').css('min-height', box_height);

View File

@ -29,7 +29,7 @@
width: 360px;
@media (max-width: map-get($grid-breakpoints, sm)) {
margin-top: 20px;
margin-top: .5rem;
width: 90%;
}
}

View File

@ -20033,7 +20033,7 @@ html.maximized-card {
@media (max-width: 576px) {
.login-box,
.register-box {
margin-top: 20px;
margin-top: .5rem;
width: 90%;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/js/adminlte.js vendored
View File

@ -412,9 +412,9 @@
_this.fixLayoutHeight();
});
if (!$('body').hasClass(ClassName.LOGIN_PAGE) && !$('body').hasClass(ClassName.REGISTER_PAGE)) {
if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length === 0) {
$('body, html').css('height', 'auto');
} else if ($('body').hasClass(ClassName.LOGIN_PAGE) || $('body').hasClass(ClassName.REGISTER_PAGE)) {
} else if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length !== 0) {
var box_height = $(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).height();
$('body').css('min-height', box_height);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long