Update top-languages-card.js

This commit is contained in:
Zohan Subhash
2023-01-16 16:21:00 +05:30
committed by GitHub
parent 2cb4861b24
commit 0adcb158f9
+1 -1
View File
@@ -117,7 +117,7 @@ const createLanguageTextNode = ({ langs, totalSize }) => {
const percent = ((longestLang.size / totalSize) * 100).toFixed(2);
const minGap = 150;
const maxGap = 20 + measureText(`${longestLang.name} ${longestLang.text || `${percent}%`}, 11);
const maxGap = 20 + measureText(`${longestLang.name} ${longestLang.text || `${percent}%`}`, 11);
return flexLayout({
items: layouts,
gap: maxGap < minGap ? minGap : maxGap,