Skip to content

Commit

Permalink
fix the spacing for positive and negative grades is different: "+ x" …
Browse files Browse the repository at this point in the history
…versus "-x".
  • Loading branch information
barais committed Jan 28, 2024
1 parent b91408f commit 13fde6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ <h5 class="card-title">{{ comment.text }}</h5>
<h5 class="card-title">{{ comment.text }}</h5>
<p class="card-text">{{ comment.description }}</p>
<p *ngIf="comment.step && comment.step === 1">
<span *ngIf="comment.grade !== null && comment.grade !== undefined && comment.grade >= 0"> + </span> {{ comment.grade }}
<span *ngIf="comment.grade !== null && comment.grade !== undefined && comment.grade >= 0"> +</span> {{ comment.grade }}
<span *ngIf="!comment.relative"> pt</span> <span *ngIf="comment.relative"> %</span>
</p>
<p *ngIf="comment.step && comment.step > 1">
<span *ngIf="comment.grade !== null && comment.grade !== undefined && comment.grade >= 0"> + </span>
<span *ngIf="comment.grade !== null && comment.grade !== undefined && comment.grade >= 0"> +</span>
{{ (comment.grade! * comment.stepValue!) / comment.step! | number: '0.0-2' }} <span *ngIf="!comment.relative"> pt</span>
<span *ngIf="comment.relative"> %</span>
<BR />
Expand Down

0 comments on commit 13fde6c

Please sign in to comment.