ColorlibHQ / AdminLTE

AdminLTE - Free admin dashboard template based on Bootstrap 5
https://adminlte.io
MIT License
44.01k stars 18.17k forks source link

[BUG] Login Page: form Position not fixed #2468

Closed perspolise closed 4 years ago

perspolise commented 4 years ago

If in login page add any error Or text after <body class="login-page"> (ie: server side error Exception) Login Form not fixed:

Untitled

REJack commented 4 years ago

The login-box is not fixed it's only placed in the center of the page via flexbox. You should place the error after <div class="login-logo"> or before/after the <p class="login-box-msg">.

perspolise commented 4 years ago

Sure, But in dynamic content template system (ie php plates Or twig) php model/controller error print after body. my mean is: I set body for body template and include all dynamic page into body so php error print after body.

REJack commented 4 years ago

I understand what you mean, I use twig to place my errors on specific spots but that depends also on the used framework/base code. 😄

As a little workaround you can add a custom css for this.

.login-page,
.register-page {
  flex-direction: column;
}

I'll add this little workaround to AdminLTE v3.

perspolise commented 4 years ago

@REJack Gr8. Worked now. thanks

danny007in commented 4 years ago

I understand what you mean, I use twig to place my errors on specific spots but that depends also on the used framework/base code. 😄

As a little workaround you can add a custom css for this.

.login-page,
.register-page {
  flex-direction: column;
}

I'll add this little workaround to AdminLTE v3.

better you can add directly in repo

REJack commented 4 years ago

I've added this little workaround to the master repo.