Skip to content

Commit

Permalink
fix: spacing + color
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Oct 1, 2024
1 parent b130c77 commit b870a36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webapp/src/app/home/leaderboard/leaderboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
</td>
<td appTableCell class="text-center">{{ entry.score }}</td>
<td appTableCell class="py-2">
<div class="flex items-center gap-3">
<div class="flex items-center gap-2">
<div class="flex items-center gap-1 text-github-muted-foreground" title="Total reviewed PRs">
<ng-icon [svg]="octGitPullRequest" size="16" />
{{ entry.numberOfReviewedPRs }}
</div>
<div class="flex items-center text-github-neutral-foreground">
<div class="flex items-center text-github-muted-foreground">
<ng-icon [svg]="octChevronLeft" size="16" />
</div>
@if (entry.changesRequested && entry.changesRequested.length > 0) {
Expand Down
12 changes: 8 additions & 4 deletions webapp/src/app/home/leaderboard/leaderboard.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const leaderboardEntries: LeaderboardEntry[] = [
changesRequested: generateReviews(3, PullRequestReviewDTO.StateEnum.ChangesRequested),
approvals: generateReviews(5, PullRequestReviewDTO.StateEnum.Approved),
comments: generateReviews(1, PullRequestReviewDTO.StateEnum.Commented),
rank: 1
rank: 1,
numberOfReviewedPRs: 10
},
{
githubName: 'FelixTJDietrich',
Expand All @@ -36,7 +37,8 @@ const leaderboardEntries: LeaderboardEntry[] = [
changesRequested: generateReviews(1, PullRequestReviewDTO.StateEnum.ChangesRequested),
approvals: generateReviews(1, PullRequestReviewDTO.StateEnum.Approved),
comments: generateReviews(14, PullRequestReviewDTO.StateEnum.Commented),
rank: 2
rank: 2,
numberOfReviewedPRs: 16
},
{
githubName: 'krusche',
Expand All @@ -47,7 +49,8 @@ const leaderboardEntries: LeaderboardEntry[] = [
changesRequested: [],
approvals: generateReviews(3, PullRequestReviewDTO.StateEnum.Approved),
comments: generateReviews(1, PullRequestReviewDTO.StateEnum.Commented),
rank: 3
rank: 3,
numberOfReviewedPRs: 3
},
{
githubName: 'shadcn',
Expand All @@ -58,7 +61,8 @@ const leaderboardEntries: LeaderboardEntry[] = [
changesRequested: [],
approvals: [],
comments: generateReviews(1, PullRequestReviewDTO.StateEnum.Commented),
rank: 4
rank: 4,
numberOfReviewedPRs: 1
}
];

Expand Down

0 comments on commit b870a36

Please sign in to comment.