Skip to content

Commit dfa31f8

Browse files
007gzsfelixxm
authored andcommitted
[3.1.x] Fixed #31901 -- Prevented content overflowing in the admin changelist with navigation sidebar.
Backport of 2bc38bc from master
1 parent 42f8c08 commit dfa31f8

3 files changed

Lines changed: 8 additions & 0 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
@@ -90,6 +90,7 @@
9090
margin: 0;
9191
vertical-align: top;
9292
font-size: 13px;
93+
max-width: 230px;
9394
}
9495

9596
#changelist #toolbar form #searchbar:focus {

django/contrib/admin/static/admin/css/nav_sidebar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,7 @@
104104
display: none;
105105
}
106106
}
107+
108+
.change-list .main > #nav-sidebar+.content {
109+
overflow: hidden;
110+
}

docs/releases/3.1.1.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ Bugfixes
6262

6363
* Fixed a ``django.contrib.admin.EmptyFieldListFilter`` crash when using on
6464
reverse relations (:ticket:`31952`).
65+
66+
* Prevented content overflowing in the admin changelist view when the
67+
navigation sidebar is enabled (:ticket:`31901`).

0 commit comments

Comments
 (0)