From 55068a68b137c920c27c703ee66af25b1bb86be2 Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Thu, 17 Dec 2020 16:48:26 +0100 Subject: [PATCH] Corrects deviations from spec in glance badges (#656) Display lock icon if there are locks, whatever their state, according to the spec in #556. Fixes #651. Add missing alarms (not in the title like #556 but in the glance area. Don't consider non-finite values when computing measurement averages. Fixes #650. Change styles of setpoint badge. Fixes #649. Signed-off-by: Yannick Schaus --- .../glance/location/measurement-badge.vue | 8 +++++--- .../cards/glance/location/status-badge.vue | 18 +++++++++++++++--- .../web/src/components/cards/location-card.vue | 2 +- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue b/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue index 209d4271e..7210251df 100644 --- a/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue +++ b/bundles/org.openhab.ui/web/src/components/cards/glance/location/measurement-badge.vue @@ -4,7 +4,7 @@ {{reduce}} {{config.unit}} - ({{reduceAux}} {{config.unit}}) + ({{reduceAux}} {{config.unit}}) @@ -20,6 +20,8 @@ .glance-label line-height 20px vertical-align top + .glance-label-aux + vertical-align super