From: Alexander Ebert Date: Sun, 25 Dec 2016 10:37:57 +0000 (+0100) Subject: Fixed login overlay w/o other components X-Git-Tag: 3.0.0_RC_3~52 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=700ed535429b7a358c14ae645e75eb5bf1a1eb4b;p=GitHub%2FWoltLab%2FWCF.git Fixed login overlay w/o other components --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index ab8031be02..1b2960c9ad 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -580,7 +580,12 @@ WCF.User.QuickLogin = { */ init: function() { require(['EventHandler', 'Ui/Dialog'], function(EventHandler, UiDialog) { - var loginForm = document.getElementById('loginForm'); + var loginForm = elById('loginForm'); + var loginSection = elBySel('.loginFormLogin', loginForm); + if (loginSection && !loginSection.nextElementSibling) { + loginForm.classList.add('loginFormLoginOnly'); + } + var callbackOpen = function(event) { if (event instanceof Event) { event.preventDefault(); diff --git a/wcfsetup/install/files/style/ui/userLogin.scss b/wcfsetup/install/files/style/ui/userLogin.scss index f54938d9de..1de94e9d99 100644 --- a/wcfsetup/install/files/style/ui/userLogin.scss +++ b/wcfsetup/install/files/style/ui/userLogin.scss @@ -59,8 +59,10 @@ } } } - - @include screen-md-up { +} + +@include screen-md-up { + .loginForm:not(.loginFormLoginOnly) > form { -webkit-column-count: 2; -moz-column-count: 2; column-count: 2; @@ -106,7 +108,7 @@ } /* force columns to be 300px wide in login overlay */ - .dialogContent .loginForm .section { + .dialogContent .loginForm:not(.loginFormLoginOnly) .section { width: 300px; } }