Skip to content

Commit

Permalink
Update scheduler-card.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Aug 13, 2020
1 parent 63d8167 commit b617787
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dist/scheduler-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class SchedulerCard extends LitElement {
return Object.values(this.config.Groups()).map(el => {
return html`
<mwc-button class="${this.selection.group == el.id ? ' active' : ''}" @click="${(e) => { this.selectGroup(el.id) }}">
<ha-icon icon="mdi:${el.icon}" style="margin-right: 11px;"></ha-icon>
<ha-icon icon="mdi:${el.icon}" class="padded-right"></ha-icon>
${el.name}
</mwc-button>
`;
Expand All @@ -119,7 +119,7 @@ class SchedulerCard extends LitElement {
return this.config.Groups(this.selection.group).entities.map(el => {
return html`
<mwc-button class="${this.selection.entity == el ? ' active' : ''}" @click="${(e) => { this.selectEntity(el.id) }}">
<ha-icon icon="mdi:${el.icon}" style="margin-right: 11px;"></ha-icon>
<ha-icon icon="mdi:${el.icon}" class="padded-right"></ha-icon>
${el.name}
</mwc-button>
`;
Expand All @@ -132,7 +132,7 @@ class SchedulerCard extends LitElement {
return this.selection.entity.GetActions().map(el => {
return html`
<mwc-button class="${this.selection.action == el ? ' active' : ''}" @click="${(e) => { this.selectAction(el.id) }}">
<ha-icon icon="mdi:${el.icon}" style="margin-right: 11px;"></ha-icon>
<ha-icon icon="mdi:${el.icon}" class="padded-right"></ha-icon>
${el.name}
</mwc-button>
`;
Expand Down Expand Up @@ -682,6 +682,10 @@ class SchedulerCard extends LitElement {
div.option-item {
padding: 2px 5px;
}
.padded-right {
margin-right: 11px;
}
</style>
`;
Expand Down

0 comments on commit b617787

Please sign in to comment.