Skip to content

Commit 0769f5d

Browse files
committed
fix: fix repoContrib confusion (#2269)
This commit prevents confusion about the Contributed to stat. Currently, only the last year's results are shown, but it looks like it is the all-time contribution count (see #2269). This commit adds a ' (last year)' suffix to prevent this confusion from happening.
1 parent b2e34ac commit 0769f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cards/stats-card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
154154
},
155155
contribs: {
156156
icon: icons.contribs,
157-
label: i18n.t("statcard.contribs"),
157+
label: i18n.t("statcard.contribs") + " (last year)",
158158
value: contributedTo,
159159
id: "contribs",
160160
},
@@ -186,7 +186,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
186186
index,
187187
showIcons: show_icons,
188188
shiftValuePos:
189-
(!include_all_commits ? 50 : 35) + (isLongLocale ? 50 : 0),
189+
(!include_all_commits ? 80.22 : 35) + (isLongLocale ? 50 : 0),
190190
bold: text_bold,
191191
}),
192192
);

0 commit comments

Comments
 (0)