Restrict the width of the login form
authorAlexander Ebert <ebert@woltlab.com>
Sat, 4 Dec 2021 16:10:31 +0000 (17:10 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 4 Dec 2021 16:10:31 +0000 (17:10 +0100)
See https://community.woltlab.com/thread/293054-xsrf-fehlermeldung-beim-acp-login-sieht-b%C3%A4h-b%C3%A4h-aus/

wcfsetup/install/files/acp/style/layout.scss
wcfsetup/install/files/acp/templates/login.tpl

index 799170546718920951a0f89cea1339c062d7c129..92807bf37986d18b7a0d139d031c64a7802ead6b 100644 (file)
@@ -568,3 +568,11 @@ $wcfAcpSubMenuWidth: 300px;
                display: none;
        }
 }
+
+.acpLoginForm {
+       max-width: 500px;
+
+       form > :first-child {
+               margin-top: 0;
+       }
+}
index a154e22d5a2b5d8271c786abaff04bcfbeb51874..15645ba09c3a12969f131e907b774057ba4c8f4d 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' pageTitle='wcf.user.login' __isLogin=true}
 
-<div id="login" style="display: none">
+<div id="login" class="acpLoginForm" style="display: none">
        <form method="post" action="{link controller='Login'}{/link}">
                {if !$errorField|empty && $errorField == 'cookie'}
                        <p class="error">{lang}wcf.user.login.error.cookieRequired{/lang}</p>