mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Resizer fix (#5882)
This commit is contained in:
parent
dd894758a4
commit
7ce0b34774
@ -303,6 +303,10 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
|
||||
}
|
||||
|
||||
private _measureCard() {
|
||||
if (!this.isConnected) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._narrow = this.offsetWidth < 375;
|
||||
if (this.offsetWidth < 300) {
|
||||
this.setAttribute("verynarrow", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user