1
0
mirror of https://github.com/django/django.git synced 2025-01-12 03:15:47 +00:00

[5.0.x] Fixed #34994 -- Fixed checkbox layout in admin's change page for narrow screen widths.

Regression in d687febce5.

Backport of a89c715c3b from main
This commit is contained in:
Tom Carrick 2023-11-23 15:11:03 +01:00 committed by Natalia
parent 15d49c8082
commit 4d33816ca6
3 changed files with 10 additions and 4 deletions

View File

@ -565,6 +565,10 @@ input[type="submit"], button {
flex-flow: column;
}
.flex-container.checkbox-row {
flex-flow: row;
}
textarea {
max-width: none;
}
@ -598,10 +602,6 @@ input[type="submit"], button {
max-width: 100%;
}
.aligned .checkbox-row {
align-items: center;
}
.aligned .checkbox-row input {
flex: 0 1 auto;
margin: 0;

View File

@ -78,4 +78,7 @@
margin-left: 0;
margin-right: 0;
}
[dir="rtl"] .aligned .vCheckboxLabel {
padding: 1px 5px 0 0;
}
}

View File

@ -24,3 +24,6 @@ Bugfixes
* Fixed a regression in Django 4.2 where the admin's change list page had
misaligned pagination links and inputs when using ``list_editable``
(:ticket:`34991`).
* Fixed a regression in Django 4.2 where checkboxes in the admin would be
centered on narrower screen widths (:ticket:`34994`).