Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
fix: truncate gist length to fit with most monospace fonts (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hephaest authored Jan 13, 2021
1 parent 4a50e40 commit b65c69d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ module.exports = (function(e, t) {
const n = e.data.languages[t];
const { name: i, percent: s, text: o } = n;
const a = [
trimRightStr(i, 11).padEnd(11),
trimRightStr(i, 10).padEnd(10),
o.padEnd(14),
generateBarChart(s, 21),
String(s.toFixed(1)).padStart(5) + "%"
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function updateGist(stats) {
const { name, percent, text: time } = data;

const line = [
trimRightStr(name, 11).padEnd(11),
trimRightStr(name, 10).padEnd(10),
time.padEnd(14),
generateBarChart(percent, 21),
String(percent.toFixed(1)).padStart(5) + "%"
Expand Down

0 comments on commit b65c69d

Please sign in to comment.