mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Media player visual improvements (#6817)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
0e021e7d7d
commit
7c5a78a1cf
@ -335,6 +335,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
.item=${child}
|
.item=${child}
|
||||||
graphic="avatar"
|
graphic="avatar"
|
||||||
hasMeta
|
hasMeta
|
||||||
|
dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="graphic"
|
class="graphic"
|
||||||
@ -360,7 +361,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</div>
|
</div>
|
||||||
<span>${child.title}</span>
|
<span class="title">${child.title}</span>
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
<li divider role="separator"></li>
|
<li divider role="separator"></li>
|
||||||
`
|
`
|
||||||
@ -620,6 +621,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
|
|
||||||
mwc-list {
|
mwc-list {
|
||||||
--mdc-list-vertical-padding: 0;
|
--mdc-list-vertical-padding: 0;
|
||||||
|
--mdc-list-item-graphic-margin: 0;
|
||||||
--mdc-theme-text-icon-on-background: var(--secondary-text-color);
|
--mdc-theme-text-icon-on-background: var(--secondary-text-color);
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
@ -728,6 +730,14 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mwc-list-item .title {
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
mwc-list-item[dir="rtl"] .title {
|
||||||
|
margin-right: 16px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============= Narrow ============= */
|
/* ============= Narrow ============= */
|
||||||
|
|
||||||
:host([narrow]) {
|
:host([narrow]) {
|
||||||
|
@ -64,14 +64,12 @@ class PanelMediaBrowser extends LitElement {
|
|||||||
"ui.components.media-browser.media-player-browser"
|
"ui.components.media-browser.media-player-browser"
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<mwc-icon-button
|
<mwc-button @click=${this._showSelectMediaPlayerDialog}>
|
||||||
.label=${this.hass.localize(
|
<ha-svg-icon .path=${mdiPlayNetwork}></ha-svg-icon>
|
||||||
"ui.components.media-browser.choose-player"
|
${this.hass.localize(
|
||||||
)}
|
"ui.components.media-browser.choose_player"
|
||||||
@click=${this._showSelectMediaPlayerDialog}
|
)}
|
||||||
>
|
</mwc-button>
|
||||||
<ha-svg-icon .path=${mdiPlayNetwork}></ha-svg-icon>
|
|
||||||
</mwc-icon-button>
|
|
||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
</app-header>
|
</app-header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -40,8 +40,6 @@ export class HuiDialogSelectMediaPlayer extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
scrimClickAction
|
|
||||||
escapeKeyAction
|
|
||||||
hideActions
|
hideActions
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
|
@ -40,8 +40,6 @@ export class HuiDialogWebBrowserPlayMedia extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
scrimClickAction
|
|
||||||
escapeKeyAction
|
|
||||||
hideActions
|
hideActions
|
||||||
.heading=${createCloseHeading(
|
.heading=${createCloseHeading(
|
||||||
this.hass,
|
this.hass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user