Opened 5 months ago

Last modified 5 days ago

#35386 closed Bug

Incorrect checkbox help text alignment in multi-field rows — at Initial Version

Reported by: Adam Johnson Owned by: nobody
Component: contrib.admin Version: 4.2
Severity: Normal Keywords:
Cc: Tom Carrick Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

For a single checkbox, styles align the help under the checkbox:

...

When the checkbox appears with any other field in the same line, this is undone:

...

Example admin:

from django.contrib import admin
from example.models import Switcher


class SwitcherAdmin(admin.ModelAdmin):
    fieldsets = [
        (
            None,
            {
                "fields": [
                    ("up", "down"),
                ],
            },
        ),
    ]


admin.site.register(Switcher, SwitcherAdmin)

(It doesn’t matter if the other field is a checkbox or not.)

Change History (3)

by Adam Johnson, 5 months ago

single-correct

by Adam Johnson, 5 months ago

double-incorrect

by Adam Johnson, 5 months ago

fixed

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