diff --git a/.gitignore b/.gitignore index 0ecfbc229afc5..1c96025ad3ad0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ package-lock.json .vscode/ .idea/ coverage +vercel_token + diff --git a/src/cards/wakatime-card.js b/src/cards/wakatime-card.js index 5d8789e12678d..4adf799fc25dc 100644 --- a/src/cards/wakatime-card.js +++ b/src/cards/wakatime-card.js @@ -73,10 +73,10 @@ const createTextNode = ({ return ` ${label}: - ${value} ${cardProgress} @@ -158,17 +158,17 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => { const compactProgressBar = languages .map((lang) => { // const progress = (width * lang.percent) / 100; - const progress = ((width - 50) * lang.percent) / 100; + const progress = ((width - 25) * lang.percent) / 100; const languageColor = languageColors[lang.name] || "#858585"; const output = ` @@ -230,7 +230,7 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => { return card.render(` ${finalLayout} - + `); }; diff --git a/tests/__snapshots__/renderWakatimeCard.test.js.snap b/tests/__snapshots__/renderWakatimeCard.test.js.snap index 93542ad497933..472a9bcd6bbbb 100644 --- a/tests/__snapshots__/renderWakatimeCard.test.js.snap +++ b/tests/__snapshots__/renderWakatimeCard.test.js.snap @@ -100,10 +100,10 @@ exports[`Test Render Wakatime Card should render correctly 1`] = ` Other: - 19 mins @@ -123,10 +123,10 @@ exports[`Test Render Wakatime Card should render correctly 1`] = ` TypeScript: - 1 min @@ -144,7 +144,7 @@ exports[`Test Render Wakatime Card should render correctly 1`] = ` - + @@ -254,31 +254,31 @@ exports[`Test Render Wakatime Card should render correctly with compact layout 1 @@ -306,7 +306,7 @@ exports[`Test Render Wakatime Card should render correctly with compact layout 1 - +