* Reboot & firmware update screens (#1626)

This commit is contained in:
Tim Wilkinson 2024-10-13 21:09:16 -07:00 committed by GitHub
parent 6f2661c17a
commit bd68cd18b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -650,7 +650,7 @@
const source = new EventSource(`{{request.env.REQUEST_URI}}?v=${download}`);
source.addEventListener("close", e => {
source.close();
const all = htmx.find("#all");
const all = htmx.find("#all") || htmx.find("#m-all");
all.outerHTML = JSON.parse(e.data).v;
const scripts = document.querySelectorAll("#all script");
for (let i = 0; i < scripts.length; i++) {

View File

@ -273,3 +273,18 @@ body.mobile .meshpage-help
{
padding: 20px 20px 0 20px;
}
body.mobile .reboot
{
padding: 10px;
flex-wrap: wrap;
}
body.mobile .reboot > div:first-child
{
scale: 0.8;
margin: auto auto;
}
body.mobile .reboot > div:nth-child(2)
{
padding: 10px 0;
}