diff --git a/src/harmony-card.ts b/src/harmony-card.ts index 118cb79..849351b 100644 --- a/src/harmony-card.ts +++ b/src/harmony-card.ts @@ -235,7 +235,8 @@ export class HarmonyCard extends LitElement { ?outlined="${outlined}" @click="${e => this.harmonyCommand(e, command)}" @touchstart="${e => this.preventBubbling(e)}" - > + > + ` : html` + @touchstart="${e => this.preventBubbling(e)}" + > `; } @@ -322,8 +324,8 @@ export class HarmonyCard extends LitElement { return html`
- - + + this.volumeCommand(e, volumeMediaPlayer, 'volume_set', { volume_level: e.target.value / 100 })} @click=${e => e.stopPropagation()} @@ -335,7 +337,7 @@ export class HarmonyCard extends LitElement { ignore-bar-touch pin> - +
`; }