Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#32069 closed Bug (fixed)

Admin change form layout broken at narrower browser widths in 3.1.2

Reported by: Phil Gyford Owned by: Benjamin Richter
Component: contrib.admin Version: 3.1
Severity: Release blocker 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: no

Description

In Django 3.1.2 the layout of fields and their help text on Admin change form pages breaks down when the browser width is below 768px. It's fine in Django 3.1.1.

Here's a correct example from v3.1.1:

https://i.imgur.com/RscTcwV.png

And here's the same page in v3.2.1:

https://i.imgur.com/1o8FFcm.png

(Both images on imgur.)

I've noticed this on three separate sites I've upgraded to 3.1.2. Downgrading to 3.1.1 corrects the error. I've tried re-running collectstatic and force-reloaded the browser.

Change History (7)

comment:1 by Carlton Gibson, 4 years ago

Cc: Tom Carrick added
Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted

Yep, thanks for the report. Looks like 100% width at the smallest size is affected.

Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822

comment:2 by Benjamin Richter, 4 years ago

Owner: changed from nobody to Benjamin Richter
Status: newassigned

I will work on this.

comment:3 by Tom Carrick, 4 years ago

Hmm I didn't get an email when I was CCd to this, but only when the last message was sent. Is Trac eating emails?

comment:4 by Benjamin Richter, 4 years ago

Has patch: set

comment:5 by Carlton Gibson, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Carlton Gibson <carlton@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In 257f8495:

Fixed #32069 -- Fixed admin change-form layout on small screens.

Restored flex-wrap CSS declaration to form elements at smallest breakpoint.
This was present since the responsive admin was introduced in dc37e8846eeedc3a9100ca21fdc9d579bc534c89.
Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822, where it was accidentally removed.

comment:7 by Carlton Gibson <carlton.gibson@…>, 4 years ago

In b37d5849:

[3.1.x] Fixed #32069 -- Fixed admin change-form layout on small screens.

Restored flex-wrap CSS declaration to form elements at smallest breakpoint.
This was present since the responsive admin was introduced in dc37e8846eeedc3a9100ca21fdc9d579bc534c89.
Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822, where it was accidentally removed.

Backport of 257f8495d6c93e30ab0f52af4c488d7344bcf112 from master

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