Skip to content

Commit

Permalink
Unify appearance of download counts in side bar and score page (dart-…
Browse files Browse the repository at this point in the history
  • Loading branch information
szakarias authored Nov 12, 2024
1 parent cf69358 commit 397d4df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions app/lib/frontend/templates/views/pkg/labeled_scores.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ d.Node labeledScoresNode({
child: _labeledScore(
'downloads',
thirtyDaysDownloads != null
? formatWith3SignificantDigits(thirtyDaysDownloads).value
? '${formatWith3SignificantDigits(thirtyDaysDownloads).value}'
'${formatWith3SignificantDigits(thirtyDaysDownloads).suffix}'
: null,
sign: thirtyDaysDownloads != null
? formatWith3SignificantDigits(thirtyDaysDownloads).suffix
: '',
sign: '',
),
)
: d.div(
Expand Down
5 changes: 3 additions & 2 deletions app/lib/frontend/templates/views/pkg/score_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ d.Node _downloadCountsKeyFigureNode(int? downloadCounts) {
);
}
return _keyFigureNode(
value: formatWith3SignificantDigits(downloadCounts).value,
supplemental: formatWith3SignificantDigits(downloadCounts).suffix,
value: '${formatWith3SignificantDigits(downloadCounts).value}'
'${formatWith3SignificantDigits(downloadCounts).suffix}',
supplemental: '',
label: 'downloads',
);
}
Expand Down

0 comments on commit 397d4df

Please sign in to comment.