From 4b55ec6743f61e4faaf63a818a180451fa2e58b7 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Tue, 19 Dec 2017 09:47:00 +0100 Subject: [PATCH] Fix DataTables rendering with bootstrap 4 cellspacing="0" : to avoid double lines in the header width="100%" : to have extra fields (search, paging...) aligned properly with the table --- app/templates/inventory/attributes.html | 2 +- app/templates/inventory/items.html | 2 +- app/templates/network/hosts.html | 2 +- app/templates/network/networks.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/inventory/attributes.html b/app/templates/inventory/attributes.html index e5c5e2d..bd54f1b 100644 --- a/app/templates/inventory/attributes.html +++ b/app/templates/inventory/attributes.html @@ -26,7 +26,7 @@ <hr class="separator"> - <table id="attributes_table" class="table table-bordered table-hover table-sm"> + <table id="attributes_table" class="table table-bordered table-hover table-sm" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> diff --git a/app/templates/inventory/items.html b/app/templates/inventory/items.html index 9d46616..90d6b7f 100644 --- a/app/templates/inventory/items.html +++ b/app/templates/inventory/items.html @@ -14,7 +14,7 @@ <br> - <table id="items_table" class="table table-bordered table-hover table-sm"> + <table id="items_table" class="table table-bordered table-hover table-sm" cellspacing="0" width="100%"> <thead> <tr> <th>Id</th> diff --git a/app/templates/network/hosts.html b/app/templates/network/hosts.html index b7519e3..3ee56bd 100644 --- a/app/templates/network/hosts.html +++ b/app/templates/network/hosts.html @@ -14,7 +14,7 @@ <br> - <table id="hosts_table" class="table table-bordered table-hover table-sm"> + <table id="hosts_table" class="table table-bordered table-hover table-sm" cellspacing="0" width="100%"> <thead> <tr> <th>Hostname</th> diff --git a/app/templates/network/networks.html b/app/templates/network/networks.html index d4c98c1..6d74875 100644 --- a/app/templates/network/networks.html +++ b/app/templates/network/networks.html @@ -14,7 +14,7 @@ <br> - <table id="networks_table" class="table table-bordered table-hover table-sm"> + <table id="networks_table" class="table table-bordered table-hover table-sm" cellspacing="0" width="100%"> <thead> <tr> <th>Network scope</th> -- GitLab