Fix sur la longueur des champs de
formulaire à 100%
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<mat-toolbar>
|
<mat-toolbar *ngIf="this.show()">
|
||||||
<button mat-icon-button (click)="snav.toggle()"><mat-icon>menu</mat-icon></button>
|
<button mat-icon-button (click)="snav.toggle()"><mat-icon>menu</mat-icon></button>
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ export class AppComponent implements OnInit {
|
|||||||
this.serviceComm.componentTitle.subscribe(title => (this.title = title));
|
this.serviceComm.componentTitle.subscribe(title => (this.title = title));
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleMenu() {
|
|
||||||
this.showMenu = !this.showMenu;
|
|
||||||
}
|
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
return this.authenticationService.currentUserValue != undefined;
|
return this.authenticationService.currentUserValue != undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>Username</mat-label>
|
<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 }">
|
[ngClass]="{ 'is-invalid': submitted && formCtrls.username.errors }">
|
||||||
<mat-error *ngIf="formCtrls.username.hasError('required')">
|
<mat-error *ngIf="formCtrls.username.hasError('required')">
|
||||||
Username is required
|
Username is required
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
padding: 15px
|
padding: 15px
|
||||||
}
|
}
|
||||||
|
|
||||||
.formNewJumps>* {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -9,4 +9,8 @@ body {
|
|||||||
font-family: Roboto, "Helvetica Neue", sans-serif;
|
font-family: Roboto, "Helvetica Neue", sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
mat-form-field{
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user