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
Adjust numbers alignment #4171
Adjust numbers alignment #4171
Conversation
The problem I see with that is that @pedromvpg wanted to have the columns aligned in the same way except for the last one. To make this possible I implemented a solution that works with monospace fonts. As this was dropped because of font style issues, the alignment doesn't work properly anymore. |
just to check if I understood correctly:
I understand that @pedromvpg design (with monospace) had the numbers aligned by comma. So he did design it that way didn't he? Only after ditching the monospace font, the numbers became misaligned. Given the great work @pedromvpg did with designing the UI, I somehow doubt that he would consider having number not aligned by its comma as aesthetic. Especially in an application where the numbers are its heart and soul. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still relevant |
ACK I tested it and and indeed, numbers are much more readable when they're right-aligned. Looks like a simple and elegant solution (using CSS classes), I'd say if other ongoing UI work "conflicts" with this, it would be trivial to just rebase and merge, or somehow integrate it if necessary. So I'd say this PR it's worth merging. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I still think this is relevant. @ripcurlx would you assign @pedromvpg for review or merge it right away? |
Unfortunately I'm not able to assign him as reviewer. Will ping him on keybase. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still relevant (even now, 6 months after PR was created). Can someone with a better understanding of this shortly indicate what is holding it back? Is it: a) this PR is fine, but needs final approval from @pedromvpg |
Hey, I won't be able to compile until later tonight. Thanks |
Hi @pedromvpg! Please see #4171 (comment) . @freimair basically changed the alignment for all number columns to right-align instead of left-align. |
@freimair In my view it helps in the specifics but it really makes the table look messy. |
I agree with @freimair on this, right-aligning for numeric values makes them more readable because of the comma alignment. Bitfinex and Kraken dashboards right-align them as well. The material design guidelines also default to text as left-aligned, numbers as right-aligned.
Here I agree with @pedromvpg , checkbox columns look better when center-aligned. Also text columns should probably stay left-aligned, as @pedromvpg suggested (for consistency with the rest of the UI). This PR, in the current form, also changes this (for example, Offer ID becomes right-aligned, even though its not a numeric value). From what I can tell, the main point of this PR was the numeric alignment. So to simplify the decision, let's just concentrate on this one aspect (and leave all else unchanged, like text left-aligned, checkboxes center-aligned). It seems there are strong pros and cons for left and right aligning numbers. Maybe @m52go could run a user survey on twitter, and ask them to vote between A) left-aligned number columns B) right-aligned number columns Or maybe there's another, better way to get user feedback? Would this make sense? |
It's not clear to me what's best here so I'd personally lean toward whatever Pedro recommends but...might not hurt to ask users too. |
Well it seems the pro designers favor left-align (Pedro and this guy) while everyone else favors right-align. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant. |
Fixes #3991
This PR fixes the most visible number alignment issues. Omitted the stuff in [Funds] and in other places, because there would be more to it than just pushing around css classes.
Here are some impressions: