Handle long task

This commit is contained in:
Lucàs
2022-08-16 20:25:17 +02:00
parent 901474aabd
commit 9fdf930767
+3 -4
View File
@@ -1,7 +1,7 @@
<div class="card m-auto w-96 bg-base-100 shadow-xl"> <div class="card m-auto w-96 bg-base-100 shadow-xl">
<div class="card-body"> <div class="card-body">
<!-- Input--> <!-- Input -->
<div class="form-control"> <div class="form-control">
<div class="input-group justify-center"> <div class="input-group justify-center">
<input type="text" placeholder="Type here your task..." <input type="text" placeholder="Type here your task..."
@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<!-- List--> <!-- List -->
<div class="form-control" *ngFor="let todoItem of todoList"> <div class="form-control" *ngFor="let todoItem of todoList">
<label class="label cursor-pointer" for="task-{{ todoItem.id }}"> <label class="label cursor-pointer" for="task-{{ todoItem.id }}">
<input type="checkbox" checked="checked" <input type="checkbox" checked="checked"
@@ -25,7 +25,7 @@
id="task-{{ todoItem.id }}" name="task-{{ todoItem.id }}" id="task-{{ todoItem.id }}" name="task-{{ todoItem.id }}"
[(ngModel)]="todoItem.completed" (change)="saveList()"/> [(ngModel)]="todoItem.completed" (change)="saveList()"/>
<span class="label-text">{{ todoItem.task }}</span> <span class="label-text text-base break-all mx-2">{{ todoItem.task }}</span>
<button class="btn btn-error btn-square btn-outline" <button class="btn btn-error btn-square btn-outline"
(click)="removeItem(todoItem.id)"> (click)="removeItem(todoItem.id)">
@@ -40,7 +40,6 @@
</label> </label>
</div> </div>
<div class="card-actions justify-between"> <div class="card-actions justify-between">
You have {{ todoList.length }} pending task(s) You have {{ todoList.length }} pending task(s)
<button class="btn btn-error" (click)="clearList()">Clear All</button> <button class="btn btn-error" (click)="clearList()">Clear All</button>