Restore hui-history-graph-card.ts

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

View File

@ -66,7 +66,7 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
private _date?: Date; private _date?: Date;
public getCardSize(): number { public getCardSize(): number {
return 3 + 2 * (this._configEntities?.length || 1); return 4;
} }
public setConfig(config: HistoryGraphCardConfig): void { public setConfig(config: HistoryGraphCardConfig): void {
@ -173,10 +173,6 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
static get styles(): CSSResult { static get styles(): CSSResult {
return css` return css`
ha-card {
height: 100%;
overflow-y: auto;
}
.content { .content {
padding: 16px; padding: 16px;
} }