#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ee18e4ef3-a3a7154d-9b50-4b0d-ab38-27877729f66f-000000%40eu-central-1.amazonses.com.

Reply via email to