mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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 {
|
||||
return 1;
|
||||
return (
|
||||
1 +
|
||||
(this._config?.vertical ? 1 : 0) +
|
||||
(this._config?.features?.length || 0)
|
||||
);
|
||||
}
|
||||
|
||||
private _handleAction(ev: ActionHandlerEvent) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user