Weather card smallest width is not set correctly (#26082)

set result.width, not result.height
This commit is contained in:
Ezra Freedman 2025-07-06 04:12:59 -04:00 committed by GitHub
parent d6b66a7145
commit e75331e159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
const width = entries[0]?.contentRect.width; const width = entries[0]?.contentRect.width;
if (width < 245) { if (width < 245) {
result.height = "very-very-narrow"; result.width = "very-very-narrow";
} else if (width < 300) { } else if (width < 300) {
result.width = "very-narrow"; result.width = "very-narrow";
} else if (width < 375) { } else if (width < 375) {
@ -93,7 +93,6 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
if (height < 235) { if (height < 235) {
result.height = "short"; result.height = "short";
} }
return result; return result;
}, },
}); });