Fixed entities list not filling whole table
This commit is contained in:
@@ -446,6 +446,7 @@
|
|||||||
|
|
||||||
const normalizedFilter = filterText.toLowerCase();
|
const normalizedFilter = filterText.toLowerCase();
|
||||||
|
|
||||||
|
let isFirstEntity = true;
|
||||||
entities
|
entities
|
||||||
.filter(e => e.Name.toLowerCase().includes(normalizedFilter))
|
.filter(e => e.Name.toLowerCase().includes(normalizedFilter))
|
||||||
.forEach(entity => {
|
.forEach(entity => {
|
||||||
@@ -453,6 +454,10 @@
|
|||||||
|
|
||||||
var nameCell = document.createElement('td');
|
var nameCell = document.createElement('td');
|
||||||
nameCell.textContent = entity.Name;
|
nameCell.textContent = entity.Name;
|
||||||
|
if (isFirstEntity) {
|
||||||
|
nameCell.classList.add('w-100'); // Otherwise the table doesn't use the full width
|
||||||
|
isFirstEntity = false;
|
||||||
|
}
|
||||||
row.appendChild(nameCell);
|
row.appendChild(nameCell);
|
||||||
|
|
||||||
var actionCell = document.createElement('td');
|
var actionCell = document.createElement('td');
|
||||||
|
|||||||
Reference in New Issue
Block a user