Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/panels/media-browser/browser-media-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class BrowserMediaPlayer {

constructor(
public hass: HomeAssistant,
private item: MediaPlayerItem,
public item: MediaPlayerItem,
private onChange: () => void
) {}

Expand Down
12 changes: 11 additions & 1 deletion src/panels/media-browser/ha-bar-media-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
TemplateResult,
} from "lit";
import { customElement, property, query, state } from "lit/decorators";
import { classMap } from "lit/directives/class-map";
import { fireEvent } from "../../common/dom/fire_event";
import { computeDomain } from "../../common/entity/compute_domain";
import { computeStateDomain } from "../../common/entity/compute_state_domain";
Expand Down Expand Up @@ -164,7 +165,11 @@ class BarMediaPlayer extends LitElement {

return html`
<div
class="info ${!isBrowser ? "pointer" : ""}"
class=${classMap({
info: true,
pointer: !isBrowser,
app: this._browserPlayer?.item.media_class === "app",
})}
@click=${this._openMoreInfo}
>
${mediaArt ? html`<img src=${this.hass.hassUrl(mediaArt)} />` : ""}
Expand Down Expand Up @@ -498,6 +503,11 @@ class BarMediaPlayer extends LitElement {
max-height: 100px;
}

.app img {
max-height: 68px;
margin: 16px 0 16px 16px;
}

ha-button-menu mwc-button {
line-height: 1;
}
Expand Down