mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
More accurate cardSize for Tile card (#19853)
More accurate cardSize for tile card
This commit is contained in:
parent
86ec272581
commit
a26df88022
@ -117,7 +117,11 @@ export class HuiTileCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public getCardSize(): number {
|
public getCardSize(): number {
|
||||||
return 1;
|
return (
|
||||||
|
1 +
|
||||||
|
(this._config?.vertical ? 1 : 0) +
|
||||||
|
(this._config?.features?.length || 0)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleAction(ev: ActionHandlerEvent) {
|
private _handleAction(ev: ActionHandlerEvent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user