Fix sur la longueur des champs de

formulaire à 100%
This commit is contained in:
Sébastien André
2021-04-14 14:32:46 +02:00
parent b00ae1618a
commit 772d3fb475
5 changed files with 6 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
<mat-toolbar>
<mat-toolbar *ngIf="this.show()">
<button mat-icon-button (click)="snav.toggle()"><mat-icon>menu</mat-icon></button>
<h2>{{ title }}</h2>
</mat-toolbar>

View File

@@ -35,10 +35,6 @@ export class AppComponent implements OnInit {
this.serviceComm.componentTitle.subscribe(title => (this.title = title));
}
toggleMenu() {
this.showMenu = !this.showMenu;
}
show() {
return this.authenticationService.currentUserValue != undefined;
}

View File

@@ -2,7 +2,7 @@
<p>
<mat-form-field>
<mat-label>Username</mat-label>
<input matInput #username="matInput" formControlName="username"
<input type="text" matInput #username="matInput" formControlName="username"
[ngClass]="{ 'is-invalid': submitted && formCtrls.username.errors }">
<mat-error *ngIf="formCtrls.username.hasError('required')">
Username is required

View File

@@ -9,10 +9,6 @@
padding: 15px
}
.formNewJumps>* {
width: 100%;
}
.content {
min-height: 90vh;
display: flex;

View File

@@ -10,3 +10,7 @@ body {
margin: 0;
padding: 10px;
}
mat-form-field{
width: 100%;
}