mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix button card and sensor card in grid section (#19887)
This commit is contained in:
parent
bf56f50e0a
commit
bf8a33e086
@ -149,8 +149,8 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
public getGridSize(): [number, number] {
|
public getGridSize(): [number, number] {
|
||||||
if (
|
if (
|
||||||
(this._config?.show_icon && this._config?.show_name) ||
|
this._config?.show_icon &&
|
||||||
this._config?.show_state
|
(this._config?.show_name || this._config?.show_state)
|
||||||
) {
|
) {
|
||||||
return [2, 2];
|
return [2, 2];
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ class HuiSensorCard extends HuiEntityCard {
|
|||||||
super.setConfig(entityCardConfig);
|
super.setConfig(entityCardConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getSize(): [number, number] {
|
public getGridSize(): [number, number] {
|
||||||
return [2, 2];
|
return [2, 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user