device state setting fix 18

This commit is contained in:
2025-11-19 12:34:39 +01:00
parent 5fbaab3c11
commit 23edd42fca
2 changed files with 13 additions and 17 deletions

View File

@@ -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';

View File

@@ -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;
}
}
<!DOCTYPE html>
<html lang="de">
<head>
@@ -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) {