From 5f050e4e78f87adbb95ef6c60f9f8f2a4ad4fe76 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Sun, 22 Sep 2024 10:04:25 +0200 Subject: [PATCH] fix minor issues in leaderboard --- .../leaderboard/leaderboard.component.html | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/webapp/src/app/home/leaderboard/leaderboard.component.html b/webapp/src/app/home/leaderboard/leaderboard.component.html index 376867e9..8eab294a 100644 --- a/webapp/src/app/home/leaderboard/leaderboard.component.html +++ b/webapp/src/app/home/leaderboard/leaderboard.component.html @@ -11,9 +11,9 @@ @for (entry of leaderboard(); track entry.githubName) { {{ entry.rank }} - + - + {{ entry.name?.slice(0, 1)?.toUpperCase() }} @@ -23,25 +23,27 @@ {{ entry.score }} - - @if (entry.changesRequested && entry.changesRequested.length > 0) { -
- - {{ entry.changesRequested.length }} -
- } - @if (entry.approvals && entry.approvals.length > 0) { -
- - {{ entry.approvals.length }} -
- } - @if (entry.comments && entry.comments.length > 0) { -
- - {{ entry.comments.length }} -
- } + +
+ @if (entry.changesRequested && entry.changesRequested.length > 0) { +
+ + {{ entry.changesRequested.length }} +
+ } + @if (entry.approvals && entry.approvals.length > 0) { +
+ + {{ entry.approvals.length }} +
+ } + @if (entry.comments && entry.comments.length > 0) { +
+ + {{ entry.comments.length }} +
+ } +
}