Skip to content

Commit 55f1e2d

Browse files
committed
fix: removed isLongLocale param
1 parent 91dbebe commit 55f1e2d

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

Diff for: src/cards/stats-card.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,6 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
137137
},
138138
};
139139

140-
const longLocales = [
141-
"cn",
142-
"es",
143-
"fr",
144-
"pt-br",
145-
"ru",
146-
"uk-ua",
147-
"id",
148-
"my",
149-
"pl",
150-
];
151-
const isLongLocale = longLocales.includes(locale) === true;
152-
153140
// filter out hidden stats defined by user & create the text nodes
154141
const statItems = Object.keys(STATS)
155142
.filter((key) => !hide.includes(key))
@@ -159,8 +146,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
159146
...STATS[key],
160147
index,
161148
showIcons: show_icons,
162-
shiftValuePos:
163-
(!include_all_commits ? 50 : 20) + (isLongLocale ? 50 : 0),
149+
shiftValuePos: 100,
164150
}),
165151
);
166152

0 commit comments

Comments
 (0)