Skip to content

Commit

Permalink
fix(shared): fillLine single line
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwangchong committed Aug 4, 2023
1 parent 3a3382b commit 5dd5a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const fillLine = (data: string | [string, string][], len = 49, pad = ' ',
return `${pad.padEnd(padNum)}${data}`.padEnd(len, pad)
} else {
len += data.flat().length * COLOR_LEN
const subLen = (len - 1) / 2
const subLen = len / data.length
return data
.reduce((line, sub) => {
const subLine = `${sub[0].padEnd(subLen - sub[1].length, subPad)}${
Expand Down

0 comments on commit 5dd5a55

Please sign in to comment.