center UM overview table
see https://www.w3schools.com/howto/howto_css_table_center.asp
This commit is contained in:
@@ -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==="") urows = "Usermods configuration not found.<br>Press <i>Save</i> to initialize defaults.";
|
||||||
if (userMod == null) {
|
if (userMod == null) {
|
||||||
urows += `<hr>`;
|
urows += `<hr> `;
|
||||||
urows += `<table>`;
|
urows += `<div style="margin: auto;">`;
|
||||||
|
urows += `<table style="margin-left:auto; margin-right:auto;">`;
|
||||||
urows += `<tr><th>Usermod</th><th>Enabled</th></tr>`
|
urows += `<tr><th>Usermod</th><th>Enabled</th></tr>`
|
||||||
for (const [k,o] of Object.entries(umCfg)) {
|
for (const [k,o] of Object.entries(umCfg)) {
|
||||||
urows += `<tr><td>${k}</td><td>${o.enabled}</td></tr>`;
|
urows += `<tr><td>${k}</td><td>${o.enabled}</td></tr>`;
|
||||||
}
|
}
|
||||||
urows += `</table>`;
|
urows += `</table>`;
|
||||||
|
urows += `</div>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user