diff --git a/README.md b/README.md index d4c92a54..112fbdd1 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,9 @@ class CustomAdminClass(ModelAdmin): # Display submit button in filters list_filter_submit = False + # Display changelist in fullwidth + list_fullwidth = False + # Position horizontal scrollbar in changelist at the top list_horizontal_scrollbar_top = False diff --git a/src/unfold/admin.py b/src/unfold/admin.py index bca64eae..16703504 100644 --- a/src/unfold/admin.py +++ b/src/unfold/admin.py @@ -230,6 +230,7 @@ class ModelAdmin(ModelAdminMixin, BaseModelAdmin): add_fieldsets = () list_horizontal_scrollbar_top = False list_filter_submit = False + list_fullwidth = False compressed_fields = False readonly_preprocess_fields = {} checks_class = UnfoldModelAdminChecks diff --git a/src/unfold/templates/admin/base.html b/src/unfold/templates/admin/base.html index dbd33a1f..fc5cdcd1 100644 --- a/src/unfold/templates/admin/base.html +++ b/src/unfold/templates/admin/base.html @@ -39,7 +39,7 @@ {% endblock messages %}
-
+
{% if cl %} {% tab_list "changelist" cl.opts %} {% elif opts %} diff --git a/src/unfold/templates/admin/change_list.html b/src/unfold/templates/admin/change_list.html index 8850a5d9..c105e775 100644 --- a/src/unfold/templates/admin/change_list.html +++ b/src/unfold/templates/admin/change_list.html @@ -30,7 +30,7 @@ {% if not is_popup %} {% block breadcrumbs %}
-
+
    {% url 'admin:index' as link %} {% trans 'Home' as name %} diff --git a/src/unfold/templates/unfold/helpers/header.html b/src/unfold/templates/unfold/helpers/header.html index 650fd677..26cc1213 100644 --- a/src/unfold/templates/unfold/helpers/header.html +++ b/src/unfold/templates/unfold/helpers/header.html @@ -1,7 +1,7 @@ {% if not is_popup %} {% block header %}
    -
    +
    {% block usertools %}