Skip to content

Commit

Permalink
Fixed: add card title if option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih committed Sep 21, 2018
1 parent 83a68d8 commit 0f4a20e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mini-media-player.js
Expand Up @@ -57,8 +57,8 @@ class MiniMediaPlayer extends LitElement {

return html`
${this._style()}
<ha-card group=${config.group}
more-info=${config.more_info} has-title=${config.title !== ''}
<ha-card group=${config.group} header=${this.config.title}
more-info=${config.more_info} ?has-title=${config.title !== ''}
artwork=${config.artwork} has-artwork=${has_artwork}
@click='${(e) => this._handleMore()}'>
<div id='artwork-cover'
Expand Down Expand Up @@ -232,7 +232,7 @@ class MiniMediaPlayer extends LitElement {
ha-card[more-info='true'] {
cursor: pointer;
}
ha-card[has-title='true'] {
ha-card[has-title] {
padding-top: 0px;
}
ha-card[artwork='cover'][has-artwork='true'] #artwork-cover {
Expand Down

0 comments on commit 0f4a20e

Please sign in to comment.