Restore hui-shopping-list-card.ts

This commit is contained in:
Zack Barett 2020-11-03 22:59:50 -06:00 committed by GitHub
parent d263b5550a
commit 54e99357b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {