mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix header padding for history graph card (#2748)
This commit is contained in:
parent
856a393531
commit
e2fc98526b
@ -11,31 +11,33 @@ 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]]">
|
||||||
<ha-state-history-data
|
<div class="content">
|
||||||
hass="[[hass]]"
|
<ha-state-history-data
|
||||||
filter-type="recent-entity"
|
hass="[[hass]]"
|
||||||
entity-id="[[_entities]]"
|
filter-type="recent-entity"
|
||||||
data="{{_stateHistory}}"
|
entity-id="[[_entities]]"
|
||||||
is-loading="{{_stateHistoryLoading}}"
|
data="{{_stateHistory}}"
|
||||||
cache-config="[[_cacheConfig]]"
|
is-loading="{{_stateHistoryLoading}}"
|
||||||
></ha-state-history-data>
|
cache-config="[[_cacheConfig]]"
|
||||||
<state-history-charts
|
></ha-state-history-data>
|
||||||
hass="[[hass]]"
|
<state-history-charts
|
||||||
history-data="[[_stateHistory]]"
|
hass="[[hass]]"
|
||||||
is-loading-data="[[_stateHistoryLoading]]"
|
history-data="[[_stateHistory]]"
|
||||||
names="[[_names]]"
|
is-loading-data="[[_stateHistoryLoading]]"
|
||||||
up-to-now
|
names="[[_names]]"
|
||||||
no-single
|
up-to-now
|
||||||
></state-history-charts>
|
no-single
|
||||||
|
></state-history-charts>
|
||||||
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user