Explorar o código

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

Matt %!s(int64=4) %!d(string=hai) anos
pai
achega
0bf39590e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/templates/generic/object_list.html

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

@@ -56,7 +56,7 @@
 
 
 {# Object table #}
 {# Object table #}
 <div class="row">
 <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 #}
     {# Object list filter, table config #}
     {% include 'inc/table_controls.html' with table_modal="ObjectTable_config" %}
     {% include 'inc/table_controls.html' with table_modal="ObjectTable_config" %}