-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add label next to size number in repo submenu #24352
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
Conversation
Every other label in that submenu has a clear indicator as to what it does. Even if the size is described using the format "12 MiB", the meaning of the label doesn't seem to immediately register with the user because the developer that worked on this feature may have thought that this would have been superfluous, as "MiB" is a unit to describe the size of digital files. The word "used" (example: "212 MiB used") was chosen over "Size:" (example: "Size: 212 MiB") so as to preserve consistency. I also thought about using the adjective "large", but it seemed way too implicit.
Screenshot would be helpful. |
It's untranslatable for i18n. Many languages do not use this syntax "123KB used" |
Yes, this needs to be one translation string like |
But the layout seems also strange for some languages:
Actually, I'd like to keep the old UI/text (no extra "used") |
Didn't think about this, thanks. |
In this case, it may be better to use the "Size:" alternative, so that it's also translatable. However, it may not be as consistent. |
You can interpolate HTML tags into the |
How about |
Personally I'd like to remove all these bold styles (they came from very old code base). Too many bold styles only affect reading IMO ... If we'd like to keep the bold styles, that's also fine (I see GitHub also has bold styles for some numbers) |
I think I understand the problem now. The key point is So the UI should be: 123 MiB The Then it's consistent with: 12,345 commits |
Possibly too technical? Makes much more sense, I'll adjust it that way. |
I think And .... TBH I won't expect a user who doesn't understand "MiB/MB" could use |
Thought so as well, just wanted to be sure. |
Sounds good. With that split we don't even need translation as |
But it's still challenge, because ... the whole text |
We could use |
I think I don't have enough capacity to work on this problem in particular right now (as in, within the next 7-14 days), feel more than free to take over in the meantime. I think that MiB should perhaps stay bold, as it's also a variable. Or that it should be moved elsewhere. |
Does this look good to you? Make repo size style matches others (commits/branches/tags) #24408 |
Close in favor of #24408. |
Every other label in that submenu has a clear indicator as to what it
does.
Even if the size is described using the format "12 MiB", the meaning
of the label doesn't seem to immediately register with the user
because the developer that worked on this feature may have thought
that this would have been superfluous, as "MiB" is a unit used to
describe the size of digital files.
The word "used" (example: "212 MiB used") was chosen over "Size:"
(example: "Size: 212 MiB") so as to preserve consistency. I also
thought about using the adjective "large", but it seemed way too
implicit.