Center active hashrate message using CSS instead of obsolete CENTER element

This commit is contained in:
szarka 2024-12-14 18:07:43 +00:00
parent 2ab8b60dc9
commit 99dec4fa0e
2 changed files with 6 additions and 1 deletions

View File

@ -644,7 +644,7 @@ int datum_api_client_dashboard(struct MHD_Connection *connection) {
}
}
sz += snprintf(&output[sz], max_sz-1-sz, "</TABLE><BR><CENTER>Total active hashrate estimate: %.2f Th/s</CENTER>", thr);
sz += snprintf(&output[sz], max_sz-1-sz, "</TABLE><p class=\"table-footer\">Total active hashrate estimate: %.2f Th/s</p>", thr);
sz += snprintf(&output[sz], max_sz-1-sz, "<script>function sendPostRequest(url, data){fetch(url,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(data)});}</script>");
sz += snprintf(&output[sz], max_sz-1-sz, "%s", www_foot_html);

View File

@ -119,6 +119,11 @@ td:not(.label) {
background-color: black;
}
.table-footer {
text-align: center;
margin-top: 30px;
}
@media (min-width: 1100px) {
.table-wrapper {
flex-wrap: nowrap;