preactjs / compressed-size-action

GitHub Action that adds compressed size changes to your PRs.
https://github.com/marketplace/actions/compressed-size-action
MIT License
602 stars 84 forks source link

Improve diff table #28

Closed fisker closed 4 years ago

fisker commented 4 years ago

Don't show empty icon column.

In order to filter these columns out, I also refactor how the table renders.

Before

Filename Size Change
`one.js` 5 kB +2.5 kB (50%) 🆘
`two.js` -5 kB -2.5 kB (50%) 🆘
`four.js` 4.5 kB +9 B (0%)
ℹī¸ View Unchanged | Filename | Size | Change | | | :--- | :---: | :---: |:---: | | \`three.js\` | 300 B | 0 B | |

After

Filename Size Change
`one.js` 5 kB +2.5 kB (50%) 🆘
`two.js` -5 kB -2.5 kB (50%) 🆘
`four.js` 4.5 kB +9 B (0%)
ℹī¸ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | \`three.js\` | 300 B | 0 B |
fisker commented 4 years ago

@developit It has been a long time since this PR merged, can you make a release? Thank you!