diff --git a/netbox/netbox/tables/columns.py b/netbox/netbox/tables/columns.py index d2cd0a0d4..0813deb36 100644 --- a/netbox/netbox/tables/columns.py +++ b/netbox/netbox/tables/columns.py @@ -162,7 +162,7 @@ class ToggleColumn(tables.CheckBoxColumn): if 'attrs' not in kwargs: kwargs['attrs'] = { 'td': { - 'class': 'min-width', + 'class': 'w-1', }, 'input': { 'class': 'form-check-input' diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 3e753bcac..f5c6bd268 100644 Binary files a/netbox/project-static/dist/netbox.css and b/netbox/project-static/dist/netbox.css differ diff --git a/netbox/project-static/styles/variables.scss b/netbox/project-static/styles/variables.scss index 4b85b6158..371c240c0 100644 --- a/netbox/project-static/styles/variables.scss +++ b/netbox/project-static/styles/variables.scss @@ -6,3 +6,7 @@ $sidebar-width: 18rem; // Reduce the default button padding $btn-padding-x: 0.5rem; $btn-padding-y: 0.25rem; + +// Reduce the default table cell padding +$table-cell-padding-x: 0.5rem; +$table-cell-padding-y: 0.5rem; diff --git a/netbox/templates/account/bookmarks.html b/netbox/templates/account/bookmarks.html index 93f741fd4..f7aa9bf57 100644 --- a/netbox/templates/account/bookmarks.html +++ b/netbox/templates/account/bookmarks.html @@ -15,7 +15,7 @@
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/connections_list.html b/netbox/templates/dcim/connections_list.html index 0d67dcaf0..c0122e7ee 100644 --- a/netbox/templates/dcim/connections_list.html +++ b/netbox/templates/dcim/connections_list.html @@ -12,7 +12,7 @@
{% include 'inc/table_controls_htmx.html' %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/devicetype/component_templates.html b/netbox/templates/dcim/devicetype/component_templates.html index 8c392965d..68e2007c0 100644 --- a/netbox/templates/dcim/devicetype/component_templates.html +++ b/netbox/templates/dcim/devicetype/component_templates.html @@ -9,7 +9,7 @@ {% csrf_token %}
{{ title }}
-
+
{% include 'htmx/table.html' %}