Opened 7 months ago
Last modified 2 months ago
#35386 closed Bug
Incorrect checkbox help text alignment in multi-field rows — at Version 1
Reported by: | Adam Johnson | Owned by: | Adam Johnson |
---|---|---|---|
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 (last modified by )
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.)
Changing fieldset.html
so checkbox-row
is applied unconditionally to checkbox-containing field boxes fixes this regression, plus #34994:
Change History (5)
by , 7 months ago
Attachment: | Xnapper-2024-04-16-10.31.32.png added |
---|
comment:1 by , 7 months ago
Description: | modified (diff) |
---|---|
Has patch: | set |
Owner: | changed from | to
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
single-correct