From 23edd42fcaaaa057d8663905619967adad306b04 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 19 Nov 2025 12:34:39 +0100 Subject: [PATCH] device state setting fix 18 --- apps/ui/templates/device.html | 4 ++-- apps/ui/templates/room.html | 26 +++++++++++--------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/apps/ui/templates/device.html b/apps/ui/templates/device.html index 17ee630..7082dbb 100644 --- a/apps/ui/templates/device.html +++ b/apps/ui/templates/device.html @@ -765,8 +765,8 @@ const tempSlider = document.getElementById('temp-slider'); const tempValue = document.getElementById('temp-value'); - if (currentTemp && deviceState.current_temp != null) { - currentTemp.textContent = deviceState.current_temp.toFixed(1) + '°C'; + if (currentTemp && deviceState.current != null) { + currentTemp.textContent = deviceState.current.toFixed(1) + '°C'; } if (targetTemp && deviceState.target != null) { targetTemp.textContent = deviceState.target.toFixed(1) + '°C'; diff --git a/apps/ui/templates/room.html b/apps/ui/templates/room.html index f812881..b7c3b88 100644 --- a/apps/ui/templates/room.html +++ b/apps/ui/templates/room.html @@ -1,18 +1,3 @@ - @media (max-width: 600px) { - .container { - max-width: 100vw; - padding: 0; - } - .devices-grid { - width: 100vw; - margin-left: -20px; - margin-right: -20px; - } - .device-card { - width: 100%; - margin: 0; - } - } @@ -81,9 +66,20 @@ } @media (max-width: 600px) { + .container { + max-width: 100vw; + padding: 0; + } .devices-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; + width: 100vw; + margin-left: -20px; + margin-right: -20px; + } + .device-card { + width: 100%; + margin: 0; } } @media (min-width: 900px) {