Skip to content

Commit

Permalink
[3.1.x] Fixed #31901 -- Prevented content overflowing in the admin ch…
Browse files Browse the repository at this point in the history
…angelist with navigation sidebar.

Backport of 2bc38bc from master
  • Loading branch information
007gzs authored and felixxm committed Sep 1, 2020
1 parent 42f8c08 commit dfa31f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions django/contrib/admin/static/admin/css/changelists.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
margin: 0;
vertical-align: top;
font-size: 13px;
max-width: 230px;
}

#changelist #toolbar form #searchbar:focus {
Expand Down
4 changes: 4 additions & 0 deletions django/contrib/admin/static/admin/css/nav_sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@
display: none;
}
}

.change-list .main > #nav-sidebar+.content {
overflow: hidden;
}
3 changes: 3 additions & 0 deletions docs/releases/3.1.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ Bugfixes

* Fixed a ``django.contrib.admin.EmptyFieldListFilter`` crash when using on
reverse relations (:ticket:`31952`).

* Prevented content overflowing in the admin changelist view when the
navigation sidebar is enabled (:ticket:`31901`).

0 comments on commit dfa31f8

Please sign in to comment.