change font size and move add and delete button in edit screens (#128)
closes #118 closes #119 Reviewed-on: #128
This commit is contained in:
		@@ -30,8 +30,7 @@ button {
 | 
			
		||||
    color: white;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    width: 250px;
 | 
			
		||||
    margin-top: auto;
 | 
			
		||||
    margin-bottom: 50px;
 | 
			
		||||
    margin-top: 100px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
button:disabled,
 | 
			
		||||
 
 | 
			
		||||
@@ -7,11 +7,6 @@
 | 
			
		||||
      <ion-title *ngIf="isAddMode">Create Goal</ion-title>
 | 
			
		||||
      <ion-title *ngIf="!isAddMode && goalId != 0">Edit Goal</ion-title>
 | 
			
		||||
      <ion-title *ngIf="!isAddMode && goalId == 0">Edit Allowance</ion-title>
 | 
			
		||||
      <button
 | 
			
		||||
        *ngIf="!isAddMode && goalId !=0"
 | 
			
		||||
        class="remove-button"
 | 
			
		||||
        (click)="deleteAllowance()"
 | 
			
		||||
      >Delete Goal</button>
 | 
			
		||||
    </div>
 | 
			
		||||
  </ion-toolbar>
 | 
			
		||||
</ion-header>
 | 
			
		||||
@@ -43,5 +38,10 @@
 | 
			
		||||
      <span *ngIf="!isAddMode && goalId != 0">Update Goal</span>
 | 
			
		||||
      <span *ngIf="!isAddMode && goalId == 0">Update Allowance</span>
 | 
			
		||||
    </button>
 | 
			
		||||
    <button
 | 
			
		||||
      *ngIf="!isAddMode && goalId !=0"
 | 
			
		||||
      class="remove-button"
 | 
			
		||||
      (click)="deleteAllowance()"
 | 
			
		||||
    >Delete Goal</button>
 | 
			
		||||
  </form>
 | 
			
		||||
</ion-content>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,10 +4,8 @@
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.remove-button {
 | 
			
		||||
    background-color: var(--ion-color-primary);
 | 
			
		||||
    margin-right: 15px;
 | 
			
		||||
    width: 100px;
 | 
			
		||||
    margin-bottom: 0;
 | 
			
		||||
    margin-top: 10px;
 | 
			
		||||
    background-color: var(--negative-amount-color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form {
 | 
			
		||||
@@ -47,8 +45,7 @@ button {
 | 
			
		||||
    color: white;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    width: 250px;
 | 
			
		||||
    margin-top: auto;
 | 
			
		||||
    margin-bottom: 50px;
 | 
			
		||||
    margin-top: 100px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
button:disabled,
 | 
			
		||||
 
 | 
			
		||||
@@ -6,11 +6,6 @@
 | 
			
		||||
      </div>
 | 
			
		||||
      <ion-title *ngIf="isAddMode">Create Task</ion-title>
 | 
			
		||||
      <ion-title *ngIf="!isAddMode">Edit Task</ion-title>
 | 
			
		||||
      <button
 | 
			
		||||
        *ngIf="!isAddMode"
 | 
			
		||||
        class="remove-button"
 | 
			
		||||
        (click)="deleteTask()"
 | 
			
		||||
      >Delete task</button>
 | 
			
		||||
    </div>
 | 
			
		||||
  </ion-toolbar>
 | 
			
		||||
</ion-header>
 | 
			
		||||
@@ -32,5 +27,10 @@
 | 
			
		||||
      <span *ngIf="isAddMode">Add Task</span>
 | 
			
		||||
      <span *ngIf="!isAddMode">Update Task</span>
 | 
			
		||||
    </button>
 | 
			
		||||
    <button
 | 
			
		||||
      *ngIf="!isAddMode"
 | 
			
		||||
      class="remove-button"
 | 
			
		||||
      (click)="deleteTask()"
 | 
			
		||||
    >Delete task</button>
 | 
			
		||||
  </form>
 | 
			
		||||
</ion-content>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,10 +4,8 @@
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.remove-button {
 | 
			
		||||
    background-color: var(--ion-color-primary);
 | 
			
		||||
    margin-right: 15px;
 | 
			
		||||
    width: 95px;
 | 
			
		||||
    margin-bottom: 0;
 | 
			
		||||
    margin-top: 10px;
 | 
			
		||||
    background-color: var(--negative-amount-color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form {
 | 
			
		||||
@@ -36,8 +34,7 @@ button {
 | 
			
		||||
    color: white;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    width: 250px;
 | 
			
		||||
    margin-top: auto;
 | 
			
		||||
    margin-bottom: 50px;
 | 
			
		||||
    margin-top: 100px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
button:disabled,
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,7 @@
 | 
			
		||||
 | 
			
		||||
.left {
 | 
			
		||||
    width: 70%;
 | 
			
		||||
    font-size: 18px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.date {
 | 
			
		||||
 
 | 
			
		||||
@@ -18,8 +18,12 @@
 | 
			
		||||
      <div class="task" *ngFor="let task of tasks$ | async">
 | 
			
		||||
        <button (click)="completeTask(task.id)">Done</button>
 | 
			
		||||
        <div (click)="updateTask(task.id)" class="item">
 | 
			
		||||
          <div class="name">{{ task.name }}</div>
 | 
			
		||||
          <div class="assigned">{{ usernames[task.assigned ? task.assigned : 0] }}</div>
 | 
			
		||||
          <div class="text">
 | 
			
		||||
            <div class="name">
 | 
			
		||||
              {{ task.name }}
 | 
			
		||||
              <span class="assigned">{{ usernames[task.assigned ? task.assigned : 0] }}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div
 | 
			
		||||
            class="reward"
 | 
			
		||||
            [ngClass]="{ 'negative': task.reward < 0 }"
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,7 @@ mat-icon {
 | 
			
		||||
    border-bottom: 1px solid var(--line-color);
 | 
			
		||||
    padding: 5px;
 | 
			
		||||
    padding-block: 10px;
 | 
			
		||||
    font-size: 18px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.item {
 | 
			
		||||
@@ -42,7 +43,6 @@ mat-icon {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.name {
 | 
			
		||||
    margin-left: 10px;
 | 
			
		||||
    color: var(--font-color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -50,6 +50,7 @@ mat-icon {
 | 
			
		||||
    margin-left: auto;
 | 
			
		||||
    margin-right: 15px;
 | 
			
		||||
    color: var(--positive-amount-color);
 | 
			
		||||
    font-size: 22px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.negative {
 | 
			
		||||
@@ -73,5 +74,12 @@ button {
 | 
			
		||||
.assigned {
 | 
			
		||||
    color: var(--line-color);
 | 
			
		||||
    margin-left: 3px;
 | 
			
		||||
    font-size: 12px;
 | 
			
		||||
    font-size: 15px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.text {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 60%;
 | 
			
		||||
    margin-left: 10px;
 | 
			
		||||
}
 | 
			
		||||
@@ -38,6 +38,7 @@
 | 
			
		||||
 | 
			
		||||
ion-title {
 | 
			
		||||
    color: var(--ion-color-primary);
 | 
			
		||||
    font-size: 24px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ion-header {
 | 
			
		||||
@@ -53,4 +54,8 @@ ion-header.md {
 | 
			
		||||
        --padding-top: 27px;
 | 
			
		||||
        height: 66px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
label {
 | 
			
		||||
    font-size: 18px;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user