#35375: Original line of tabular inline admin is always shown on the left, even in
RTL
-------------------------------------+-------------------------------------
Reporter: Eyal | Owner: nobody
Cherevatsky |
Type: Bug | Status: new
Component: | Version: 5.0
contrib.admin |
Severity: Normal | Keywords: admin, inline, rtl
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 1 |
-------------------------------------+-------------------------------------
When using a tabular inline admin model, the "original" line (containing
the string representation and, optionally, a view/change link) is always
show on the left. This is fine in most cases, expect for cases where the
language is RTL (right-to-left).
The following CSS, if put in
`django/contrib/admin/static/admin/css/rtl.css`, should resolve the issue:
{{{#!css
.inline-group .tabular td.original p {
right: 0;
}
}}}
Alternatively, instead of having specific styling for RTL, we can use
`inset-inline-start` instead of `left`, which will work correctly for both
LTR and RTL. I believe this should be changed here:
https://github.com/django/django/blob/dd238212082f6547d5b03c5af6ec53368c39568e/django/contrib/admin/static/admin/css/forms.css#L458
--
Ticket URL: <
https://code.djangoproject.com/ticket/35375>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.