Browse Source

fix UI

pull/736/head
lumapu 2 years ago
parent
commit
71ea7155ca
  1. 2
      src/web/html/style.css
  2. 4
      src/web/html/visualization.html

2
src/web/html/style.css

@ -582,7 +582,7 @@ div.hr {
width: 450px;
height: 200px;
border: 1px solid #ccc;
background-color: var(--ts-head);
background-color: var(--input-bg);
position: absolute;
top: 50%;
left: 50%;

4
src/web/html/visualization.html

@ -62,7 +62,7 @@
function totals() {
for(var i = 0; i < 5; i++) {
var total[i] = Math.round(total[i] * 100) / 100;
total[i] = Math.round(total[i] * 100) / 100;
}
return ml("div", {class: "row mt-3 mb-5"},
@ -98,7 +98,7 @@
ml("div", {class: "p-2 iv-h"},
ml("div", {class: "row"}, [
ml("div", {class: "col mx-2 mx-md-1"}, obj.name),
ml("div", {class: "col a-c"}, "Power limit " + obj.power_limit_read + " %"),
ml("div", {class: "col a-c"}, "Power limit " + ((obj.power_limit_read == 65535) ? "n/a" : (obj.power_limit_read + " %"))),
ml("div", {class: "col a-r mx-2 mx-md-1"}, String(obj.ch[0][5]) + " C")
])
),

Loading…
Cancel
Save