1
align numeric fields at decimal point
Source: directus/directus#24937 · opened by @NickCrews
Describe the Improvement
Currently, numeric columns can be aligned left, center, or right, just like all the rest. This makes it hard to compare the relative size of things at-a-glance. I want larger numbers to stick further left than smaller numbers. Right-align works if all numbers have the same number of digits to the right of the decimal point, but if there is a mix then it doesn't work.
<img width="360" alt="image" src="
This is a small UX thing, not a big deal, but if it's not too hard then that would be great. If it's a pain then feel free to just close this out. If you point me in the right direction then I can take a stab at a PR, though I am a noob with typescript (though am an experienced python engineer).
Other more generic solution would be if we added a more general formatting API to fields (I bet there is already an issue about that) so that this is the user's responsibility/power.
Thank you!
Currently, numeric columns can be aligned left, center, or right, just like all the rest. This makes it hard to compare the relative size of things at-a-glance. I want larger numbers to stick further left than smaller numbers. Right-align works if all numbers have the same number of digits to the right of the decimal point, but if there is a mix then it doesn't work.
<img width="360" alt="image" src="
This is a small UX thing, not a big deal, but if it's not too hard then that would be great. If it's a pain then feel free to just close this out. If you point me in the right direction then I can take a stab at a PR, though I am a noob with typescript (though am an experienced python engineer).
Other more generic solution would be if we added a more general formatting API to fields (I bet there is already an issue about that) so that this is the user's responsibility/power.
Thank you!
No pledges yet. Be the first to back this.
Comments
Similar requests
Add Fields Exclusion in Rest API
3 votes · 0 comments
Accordions and Detail group nested fields
2 votes · 0 comments
Allow editing on the system fields
50 votes · 0 comments
An option to add fields into relevant groups without dragging them.
8 votes · 0 comments
Set Item Duplication Fields automatically
26 votes · 0 comments
No comments yet.