center UM overview table

see https://www.w3schools.com/howto/howto_css_table_center.asp
This commit is contained in:
Frank
2023-03-16 15:23:15 +01:00
parent d9b5b9d4d6
commit 5a829e103a

View File

@@ -333,13 +333,15 @@
}
if (userMod != null && urows==="") urows = "Usermods configuration not found.<br>Press <i>Save</i> to initialize defaults.";
if (userMod == null) {
urows += `<hr>`;
urows += `<table>`;
urows += `<hr> `;
urows += `<div style="margin: auto;">`;
urows += `<table style="margin-left:auto; margin-right:auto;">`;
urows += `<tr><th>Usermod</th><th>Enabled</th></tr>`
for (const [k,o] of Object.entries(umCfg)) {
urows += `<tr><td>${k}</td><td>${o.enabled}</td></tr>`;
}
urows += `</table>`;
urows += `</div>`;
}
}