refs #435. UX improvements

pull/4/head
Manuel Aranda Rosales 2024-07-15 09:56:59 +02:00
parent 3ce8bfe8fe
commit a643581f31
3 changed files with 11 additions and 10 deletions

View File

@ -55,14 +55,14 @@ mat-form-field {
}
@keyframes rotate360 {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.rotating {
animation: rotate360 0.6s cubic-bezier(.42,0,1,1) infinite;
}
.rotating {
animation: rotate360 0.6s cubic-bezier(.42,0,1,1) infinite;
}

View File

@ -21,7 +21,7 @@
</button>
</mat-form-field>
<div class="button-row">
<button mat-flat-button color="primary" type="submit" [disabled]="!loginObj.username || !loginObj.password">Iniciar sesión</button>
<button mat-flat-button color="primary" type="submit" (keydown.enter)="$event.preventDefault()" [disabled]="!loginObj.username || !loginObj.password">Iniciar sesión</button>
</div>
</form>
</div>

View File

@ -63,6 +63,7 @@ export class LoginComponent {
hide = signal(true);
clickEvent(event: MouseEvent) {
event.preventDefault();
this.hide.set(!this.hide());
event.stopPropagation();
}