Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human readable filesize column #2366

Merged
merged 1 commit into from
Jan 28, 2024
Merged

Conversation

phw
Copy link
Member

@phw phw commented Jan 28, 2024

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Some minor tweaks to the "Size" column added in #2361 to the main view:

  • use bytes2human to format the value
  • ensure sorting happens by actual byte size
  • right aligned column

- use bytes2human to format the value
- ensure sorting happens by actual byte size
- right aligned column
@phw
Copy link
Member Author

phw commented Jan 28, 2024

A shout out to @nullHawk for actually thinking about this. I missed that you had added the column in my review, but this was a great consideration. Very useful

@phw phw requested a review from zas January 28, 2024 21:01
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phw phw merged commit f19818c into metabrainz:master Jan 28, 2024
46 checks passed
@phw phw deleted the pretty-filesize-column branch January 28, 2024 22:40
@nullHawk
Copy link
Contributor

A shout out to @nullHawk for actually thinking about this. I missed that you had added the column in my review, but this was a great consideration. Very useful

Thanks a bunch! Happy to contribute. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants