Change task-list adding dialog style.

This commit is contained in:
2022-03-06 13:04:39 +01:00
parent 6de8a4f0fa
commit 54108bc7e5
5 changed files with 23 additions and 13 deletions

View File

@@ -34,7 +34,12 @@ export class HeaderComponent implements OnInit, OnDestroy {
}
openNewListForm(): void {
this._dialog.open(AddTaskListComponent);
this._dialog.open(
AddTaskListComponent,
{
width: '20rem'
}
);
}
goTaskListsPane(): void {

View File

@@ -1,3 +1,4 @@
<h2>Création d'une task-list</h2>
<form [formGroup]="addTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
<p>
<mat-form-field>
@@ -8,8 +9,8 @@
</mat-error>
</mat-form-field>
</p>
<div>
<button mat-raised-button type="button" (click)="close()">Annuler</button>
<button mat-raised-button type="submit">Créer une liste</button>
<div class="actions">
<button class="raised" type="button" (click)="close()">Annuler</button>
<button class="raised" type="submit">Créer une liste</button>
</div>
</form>

View File

@@ -0,0 +1,12 @@
form {
p {
mat-form-field {
width: 100%;
}
}
.actions {
display: flex;
flex-direction: row;
justify-content: space-between;
}
}

View File

@@ -1,3 +1,4 @@
<h2>Renommage d'une task-list</h2>
<form [formGroup]="renameTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
<p>
<mat-form-field>

View File

@@ -31,15 +31,6 @@ export class TaskListsComponent implements OnInit, OnDestroy {
this._storeSubscription?.unsubscribe();
}
openNewListForm(): void {
this._dialog.open(
AddTaskListComponent,
{
width: '20rem'
}
);
}
selectActiveTaskList(taskList: TaskList): void {
if (this.isSelectionModeEnabled()) {
this._taskListService.selectTaskList(taskList);