Parcourir la source

#6797: Fix object list layout when there is no filter form

Matt il y a 4 ans
Parent
commit
0bf39590e3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/templates/generic/object_list.html

+ 1 - 1
netbox/templates/generic/object_list.html

@@ -56,7 +56,7 @@
 
 {# Object table #}
 <div class="row">
-  <div class="col col-md-7 col-lg-8 col-xl-9 col-xxl-10">
+  <div class="col {% if filter_form %}col-md-7 col-lg-8 col-xl-9 col-xxl-10{% else %}col-12{% endif %}">
     {# Object list filter, table config #}
     {% include 'inc/table_controls.html' with table_modal="ObjectTable_config" %}