diff --git a/src/panels/lovelace/cards/hui-shopping-list-card.ts b/src/panels/lovelace/cards/hui-shopping-list-card.ts index f351eeaa56..fc1518c945 100644 --- a/src/panels/lovelace/cards/hui-shopping-list-card.ts +++ b/src/panels/lovelace/cards/hui-shopping-list-card.ts @@ -52,7 +52,7 @@ class HuiShoppingListCard extends SubscribeMixin(LitElement) @internalProperty() private _checkedItems?: ShoppingListItem[]; public getCardSize(): number { - return (this._config ? (this._config.title ? 2 : 0) : 0) + 6; + return (this._config ? (this._config.title ? 1 : 0) : 0) + 3; } public setConfig(config: ShoppingListCardConfig): void { @@ -254,8 +254,6 @@ class HuiShoppingListCard extends SubscribeMixin(LitElement) return css` ha-card { padding: 16px; - height: 100%; - box-sizing: border-box; } .has-header {