diff --git a/webif/src/lib/assets/warning.svg b/webif/src/lib/assets/warning.svg new file mode 100644 index 0000000..e7e9788 --- /dev/null +++ b/webif/src/lib/assets/warning.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webif/src/routes/Circuits.svelte b/webif/src/routes/Circuits.svelte index bdb69ba..c42cf09 100644 --- a/webif/src/routes/Circuits.svelte +++ b/webif/src/routes/Circuits.svelte @@ -1,6 +1,7 @@ @@ -30,7 +31,13 @@ {data.circuit.phase ?? ''} {data.circuit.type} {data.circuit.sensor.type} - {data.power}W + + {#if data.power !== undefined} + {data.power}W + {:else} + Warning N/A + {/if} + {#if data.apparentPower } {data.apparentPower}VA diff --git a/webif/src/routes/styles.css b/webif/src/routes/styles.css index 902e6f4..91320a1 100644 --- a/webif/src/routes/styles.css +++ b/webif/src/routes/styles.css @@ -11,6 +11,7 @@ --color: #aaa; --component-background: #3b3b3b; --highlight-color: #ff3d00; + --warning-color: #bb962f; } nav { @@ -32,6 +33,10 @@ border: 0; } + .pure-table td img { + vertical-align: bottom; + } + .pure-table-striped tr:nth-child(2n-1) td { background-color: #2e2e2e; }