1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

[4.2.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 3d943c4f55
commit bac9e94ace
3 changed files with 10 additions and 4 deletions

View File

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

View File

@@ -78,4 +78,7 @@
margin-left: 0; margin-left: 0;
margin-right: 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 * Fixed a regression in Django 4.2 where the admin's change list page had
misaligned pagination links and inputs when using ``list_editable`` misaligned pagination links and inputs when using ``list_editable``
(:ticket:`34991`). (:ticket:`34991`).
* Fixed a regression in Django 4.2 where checkboxes in the admin would be
centered on narrower screen widths (:ticket:`34994`).