Fix header padding for history graph card (#2748)

This commit is contained in:
Paulus Schoutsen 2019-02-14 12:34:53 -08:00 committed by GitHub
parent 856a393531
commit e2fc98526b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,15 +11,16 @@ class HuiHistoryGraphCard extends PolymerElement {
static get template() { static get template() {
return html` return html`
<style> <style>
ha-card { .content {
padding: 16px; padding: 16px;
} }
ha-card[header] { [header] .content {
padding-top: 0; padding-top: 0;
} }
</style> </style>
<ha-card header$="[[_config.title]]"> <ha-card header$="[[_config.title]]">
<div class="content">
<ha-state-history-data <ha-state-history-data
hass="[[hass]]" hass="[[hass]]"
filter-type="recent-entity" filter-type="recent-entity"
@ -36,6 +37,7 @@ class HuiHistoryGraphCard extends PolymerElement {
up-to-now up-to-now
no-single no-single
></state-history-charts> ></state-history-charts>
</div>
</ha-card> </ha-card>
`; `;
} }