Skip to content

Commit e6290c9

Browse files
authored
fix: Reduce characters per line for side labels (DenverCoder1#377)
1 parent ec87af5 commit e6290c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/card.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ function generateCard(array $stats, array $params = null): string
242242
}
243243

244244
// if the translations contain a newline, split the text into two tspan elements
245-
$totalContributionsText = splitLines($localeTranslations["Total Contributions"], 24, -9);
245+
$totalContributionsText = splitLines($localeTranslations["Total Contributions"], 22, -9);
246246
if ($stats["mode"] === "weekly") {
247247
$currentStreakText = splitLines($localeTranslations["Week Streak"], 22, -9);
248-
$longestStreakText = splitLines($localeTranslations["Longest Week Streak"], 24, -9);
248+
$longestStreakText = splitLines($localeTranslations["Longest Week Streak"], 22, -9);
249249
} else {
250250
$currentStreakText = splitLines($localeTranslations["Current Streak"], 22, -9);
251-
$longestStreakText = splitLines($localeTranslations["Longest Streak"], 24, -9);
251+
$longestStreakText = splitLines($localeTranslations["Longest Streak"], 22, -9);
252252
}
253253

254254
// if the ranges contain over 28 characters, split the text into two tspan elements

0 commit comments

Comments
 (0)