mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Weather card smallest width is not set correctly (#26082)
set result.width, not result.height
This commit is contained in:
parent
d6b66a7145
commit
e75331e159
@ -82,7 +82,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
||||
|
||||
const width = entries[0]?.contentRect.width;
|
||||
if (width < 245) {
|
||||
result.height = "very-very-narrow";
|
||||
result.width = "very-very-narrow";
|
||||
} else if (width < 300) {
|
||||
result.width = "very-narrow";
|
||||
} else if (width < 375) {
|
||||
@ -93,7 +93,6 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
||||
if (height < 235) {
|
||||
result.height = "short";
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user