device state setting fix 18
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user