From 003ed01bb3c8b26fbc16c38d6e7d110cf7fd0d8c Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 10 Sep 2010 17:49:42 +0000 Subject: [PATCH] Admin changelist page now has consistent width with or without filter bar. Patch and testing from Kronuz and radez. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13711 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/changelists.css | 2 +- django/contrib/admin/templates/admin/change_list_results.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/media/css/changelists.css b/django/contrib/admin/media/css/changelists.css index 99ff8bc0cf..3f8cf3c21b 100644 --- a/django/contrib/admin/media/css/changelists.css +++ b/django/contrib/admin/media/css/changelists.css @@ -21,7 +21,7 @@ background: white url(../img/admin/changelist-bg.gif) top right repeat-y !important; } -.change-list .filtered table, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { +.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { margin-right: 160px !important; width: auto !important; } diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index 0efcc9b24a..cd2050e895 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -1,4 +1,5 @@ {% if results %} +
@@ -14,4 +15,5 @@ {% endfor %}
+
{% endif %}