Skip to content

Commit 82e1294

Browse files
skulden13carltongibson
authored andcommitted
[3.1.x] Fixed #32391 -- Used CSS flex properties for changelist filter.
Matched layout adjustment using flex from admin sidebar added in d24ba1b. Filters would become squashed when viewport was constrained or list display table became too wide. Backport of 269a767 from master
1 parent b920945 commit 82e1294

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

django/contrib/admin/static/admin/css/changelists.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
/* FILTER COLUMN */
129129

130130
#changelist-filter {
131+
flex: 0 0 240px;
131132
order: 1;
132133
width: 240px;
133134
background: #f8f8f8;

django/contrib/admin/static/admin/css/responsive.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ input[type="submit"], button {
157157
}
158158

159159
#changelist-filter {
160-
width: 200px;
160+
flex-basis: 200px;
161161
}
162162

163163
.change-list .filtered .results,

docs/releases/3.1.6.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Django 3.1.6 fixes several bugs in 3.1.5.
99
Bugfixes
1010
========
1111

12-
* ...
12+
* Fixed an admin layout issue in Django 3.1 where changelist filter controls
13+
would become squashed (:ticket:`32391`).

0 commit comments

Comments
 (0)