Re: [Django] #35799: Plus icon should be right of text for adding an inline item in admin for RTL support

11 views
Skip to first unread message

Django

unread,
Sep 28, 2024, 12:01:57 PM9/28/24
to django-...@googlegroups.com
#35799: Plus icon should be right of text for adding an inline item in admin for
RTL support
-------------------------------+---------------------------------------
Reporter: Mario Munoz | Owner: Mario Munoz
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+---------------------------------------
Comment (by Mario Munoz):

There was no CSS class specified for the link created within the "add-row"
element generated by the {{{ inline.js }}} file. Also found duplication of
the CSS that generates the icon for "addlink" icon. It was in both the {{{
base.css }}} file as well as the {{{ forms.css }}} file, although the {{{
forms.css }}} also had a font-size property.

With no changes to the CSS, the {{{ addlink }}} class had no effect on the
affected element because of the duplication and CSS specificity rules.
(The rule in {{{ forms.css }}} had higher precedence.)

We standardized the usage of the {{{ addlink }}} class by removing the css
rule in {{{ forms.css }}} for tabular and stacked elements. There was an
additional property set for ul elements, but that is being addressed in
ticket #35804.

By removing the css rules in {{{ forms.css }}} and adding the class {{{
addlink }}} class in the affected element, it is now displaying correctly,
and should be easier to maintain in the future.

See screenshot for fix.
--
Ticket URL: <https://code.djangoproject.com/ticket/35799#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 28, 2024, 12:03:14 PM9/28/24
to django-...@googlegroups.com
#35799: Plus icon should be right of text for adding an inline item in admin for
RTL support
-------------------------------+---------------------------------------
Reporter: Mario Munoz | Owner: Mario Munoz
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+---------------------------------------
Changes (by Mario Munoz):

* Attachment "admin-rtl-support.png" added.

--
Ticket URL: <https://code.djangoproject.com/ticket/35799>

Django

unread,
Sep 28, 2024, 12:49:01 PM9/28/24
to django-...@googlegroups.com
#35799: Plus icon should be right of text for adding an inline item in admin for
RTL support
-------------------------------+---------------------------------------
Reporter: Mario Munoz | Owner: Mario Munoz
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+---------------------------------------
Changes (by Mario Munoz):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35799#comment:3>

Django

unread,
Oct 8, 2024, 6:30:15 AM10/8/24
to django-...@googlegroups.com
#35799: Plus icon should be right of text for adding an inline item in admin for
RTL support
-------------------------------------+-------------------------------------
Reporter: Mario Munoz | Owner: Mario
| Munoz
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35799#comment:4>

Django

unread,
Oct 8, 2024, 6:40:04 AM10/8/24
to django-...@googlegroups.com
#35799: Plus icon should be right of text for adding an inline item in admin for
RTL support
-------------------------------------+-------------------------------------
Reporter: Mario Munoz | Owner: Mario
| Munoz
Type: Bug | Status: closed
Component: contrib.admin | Version: 5.0
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"ef56e1ff6dc71a08154e52a1044892e60c25ad77" ef56e1f]:
{{{#!CommitTicketReference repository=""
revision="ef56e1ff6dc71a08154e52a1044892e60c25ad77"
Fixed #35799 -- Fixed the positioning of the inline admin plus icon for
RTL languages.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35799#comment:5>
Reply all
Reply to author
Forward
0 new messages