fix dialog, and wierd scroll bar

This commit is contained in:
Igor Hrenowitsch Propisnov 2024-09-10 20:39:25 +02:00
parent 28a7006d0d
commit 9e543a00eb
3 changed files with 14 additions and 4 deletions

View File

@ -458,10 +458,11 @@
<div
class="modal modal-open"
*ngIf="
isTokenVerified() ||
isVerifying() ||
verificationError() ||
isAutoLoginInProgress()
(isTokenVerified() ||
isVerifying() ||
verificationError() ||
isAutoLoginInProgress()) &&
isValidLoginAttempt()
"
tabindex="-1"
aria-labelledby="verify-modal-title"

View File

@ -254,6 +254,10 @@ export class WelcomeRootComponent implements OnInit {
}
}
public isValidLoginAttempt(): boolean {
return this.signin() && this.token() !== '';
}
private focusPasswordField(): void {
if (this.passwordInput) {
this.passwordInput.nativeElement.focus();

View File

@ -8,3 +8,8 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root:has(:is(.modal-open, .modal:target, .modal-toggle:checked + .modal, .modal[open])) {
scrollbar-gutter: auto
;}