Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#37472 closed Cleanup/optimization (wontfix)

Numbers in Admin tables

Reported by: minusf Owned by:
Component: contrib.admin Version: 6.1
Severity: Low Keywords: css font tabular
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description (last modified by minusf)

Hi. I would like to propose to add font-variant-numeric: tabular-nums; to tables in the django admin:

M django/contrib/admin/static/admin/css/base.css
@@ -348,6 +348,7 @@ a.quiet:visited {
 table {
     border-collapse: collapse;
     border-color: var(--border-color);
+    font-variant-numeric: tabular-nums;
 }
 
 td,

Screenshot without:

Screenshot with:

Attachments (3)

non-tabular.png​ (75.3 KB ) - added by minusf 3 weeks ago.
tabular.png​ (69.7 KB ) - added by minusf 3 weeks ago.
non-tabular2.png​ (87.7 KB ) - added by minusf 3 weeks ago.

Download all attachments as: .zip

Change History (6)

by minusf, 3 weeks ago

Attachment: non-tabular.png​ added

by minusf, 3 weeks ago

Attachment: tabular.png​ added

comment:1 by minusf, 3 weeks ago

Description: modified (diff)

comment:2 by Sarah Boyce, 3 weeks ago

Resolution: → wontfix
Status: new → closed

The before and after look almost the same to me
I don't think we will take minor css improvements unless there is a clear UI bug or we are addressing some form of accessibility problem

by minusf, 3 weeks ago

Attachment: non-tabular2.png​ added

comment:3 by minusf, 3 weeks ago

They are not the same and in number heavy tables the effect is very visible. "Minor css improvements" can have big effects and big wins, and this is a true one liner that has a big quality of life improvement.

The django tagline used to be "The web framework for perfectionists with deadlines." but I see that was removed.


Note: See TracTickets for help on using tickets.
Back to Top