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

feat: improve nav bar #1128

Merged
merged 3 commits into from
Aug 28, 2019
Merged

feat: improve nav bar #1128

merged 3 commits into from
Aug 28, 2019

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Aug 25, 2019

This applies #1122!

image

Is it better with one or zero decimals?

image

I believe that using 0 decimals can hide a bit the difference between repo and the files sizing...

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Mixed feelings:

2019-08-26--14-12-50

What if we hide decimal when unit is MB and KB (low value, adds noise),
but show it for size bigger than 1 GB? At that point decimal becomes meaningful.

You should be able to do that inside of humanSize by checking the size on the fly and enabling/hiding decimal.

src/files/header/Header.js Outdated Show resolved Hide resolved
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias
Copy link
Member Author

hacdias commented Aug 26, 2019

@lidel done:

image

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

lgtm

@hacdias hacdias merged commit 1446b0f into master Aug 28, 2019
@hacdias hacdias deleted the feat/improve-files-bar branch August 28, 2019 11:53
@hacdias hacdias mentioned this pull request Aug 28, 2019
16 tasks
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.

2 participants