forked from Ocean/datum_gateway
Center active hashrate message using CSS instead of obsolete CENTER element
This commit is contained in:
parent
2ab8b60dc9
commit
99dec4fa0e
@ -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, "<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);
|
sz += snprintf(&output[sz], max_sz-1-sz, "%s", www_foot_html);
|
||||||
|
|
||||||
|
@ -119,6 +119,11 @@ td:not(.label) {
|
|||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-footer {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 1100px) {
|
@media (min-width: 1100px) {
|
||||||
.table-wrapper {
|
.table-wrapper {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
Loading…
Reference in New Issue
Block a user