Skip to content

Commit 397d4df

Browse files
authored
Unify appearance of download counts in side bar and score page (#8277)
1 parent cf69358 commit 397d4df

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/lib/frontend/templates/views/pkg/labeled_scores.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ d.Node labeledScoresNode({
3838
child: _labeledScore(
3939
'downloads',
4040
thirtyDaysDownloads != null
41-
? formatWith3SignificantDigits(thirtyDaysDownloads).value
41+
? '${formatWith3SignificantDigits(thirtyDaysDownloads).value}'
42+
'${formatWith3SignificantDigits(thirtyDaysDownloads).suffix}'
4243
: null,
43-
sign: thirtyDaysDownloads != null
44-
? formatWith3SignificantDigits(thirtyDaysDownloads).suffix
45-
: '',
44+
sign: '',
4645
),
4746
)
4847
: d.div(

app/lib/frontend/templates/views/pkg/score_tab.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ d.Node _downloadCountsKeyFigureNode(int? downloadCounts) {
279279
);
280280
}
281281
return _keyFigureNode(
282-
value: formatWith3SignificantDigits(downloadCounts).value,
283-
supplemental: formatWith3SignificantDigits(downloadCounts).suffix,
282+
value: '${formatWith3SignificantDigits(downloadCounts).value}'
283+
'${formatWith3SignificantDigits(downloadCounts).suffix}',
284+
supplemental: '',
284285
label: 'downloads',
285286
);
286287
}

0 commit comments

Comments
 (0)