Skip to content

Commit 0bb2a05

Browse files
committed
Fixes #6171: Fix display of horizontally-scrolling object lists
1 parent ef78a7d commit 0bb2a05

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/release-notes/version-2.11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* [#6124](https://github.com/netbox-community/netbox/issues/6124) - Location `parent` filter should return all child locations (not just those directly assigned)
2929
* [#6130](https://github.com/netbox-community/netbox/issues/6130) - Improve display of assigned models in custom fields list
3030
* [#6155](https://github.com/netbox-community/netbox/issues/6155) - Fix admin links for plugins, background tasks
31+
* [#6171](https://github.com/netbox-community/netbox/issues/6171) - Fix display of horizontally-scrolling object lists
3132

3233
---
3334

netbox/templates/generic/object_list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ <h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bett
2929
{% block sidebar %}{% endblock %}
3030
</div>
3131
{% endif %}
32-
<div class="table-responsive">
3332
{% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %}
3433
{% if permissions.change or permissions.delete %}
3534
<form method="post" class="form form-horizontal">
@@ -59,7 +58,9 @@ <h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bett
5958
</div>
6059
</div>
6160
{% endif %}
62-
{% render_table table 'inc/table.html' %}
61+
<div class="table-responsive">
62+
{% render_table table 'inc/table.html' %}
63+
</div>
6364
<div class="pull-left noprint">
6465
{% block bulk_buttons %}{% endblock %}
6566
{% if bulk_edit_url and permissions.change %}
@@ -78,7 +79,6 @@ <h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bett
7879
{% render_table table 'inc/table.html' %}
7980
{% endif %}
8081
{% endwith %}
81-
</div>
8282
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
8383
<div class="clearfix"></div>
8484
</div>

0 commit comments

Comments
 (0)