ssb: Update ebt received value on the fly.

This commit is contained in:
2025-03-16 22:04:06 -04:00
parent 862d172ca8
commit bb7d2d7ae0
9 changed files with 36 additions and 11 deletions

View File

@ -109,7 +109,9 @@ class TfTabConnectionsElement extends LitElement {
<div class="w3-theme-d1 w3-small">
<div
class="w3-container w3-theme-l1"
style="width: ${Math.floor((100.0 * value) / max)}%; text-wrap: nowrap"
style="width: ${Math.floor(
(100.0 * value) / max
)}%; text-wrap: nowrap"
>
${name} ${value} / ${max} (${Math.round((100.0 * value) / max)}%)
</div>