Media panel fix (#12485)

This commit is contained in:
Yosi Levy 2022-04-28 08:16:18 +03:00 committed by GitHub
parent 3ccbf6983e
commit 8135611688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class DialogMediaPlayerBrowse extends LitElement {
ha-media-player-browse { ha-media-player-browse {
--media-browser-max-height: calc(100vh - 65px); --media-browser-max-height: calc(100vh - 65px);
height: calc(100vh - 65px); height: calc(100vh - 65px);
direction: ltr;
} }
@media (min-width: 800px) { @media (min-width: 800px) {

View File

@ -686,6 +686,16 @@ export class BarMediaPlayer extends LitElement {
mwc-list-item[selected] { mwc-list-item[selected] {
font-weight: bold; font-weight: bold;
} }
:host-context([style*="direction: rtl;"]) ha-svg-icon[slot="icon"] {
margin-left: 8px !important;
margin-right: 8px !important;
}
:host-context([style*="direction: rtl;"])
ha-svg-icon[slot="trailingIcon"] {
margin-left: 0px !important;
margin-right: 8px !important;
}
`; `;
} }
} }

View File

@ -278,6 +278,7 @@ class PanelMediaBrowser extends LitElement {
ha-media-player-browse { ha-media-player-browse {
height: calc(100vh - (100px + var(--header-height))); height: calc(100vh - (100px + var(--header-height)));
direction: ltr;
} }
:host([narrow]) ha-media-player-browse { :host([narrow]) ha-media-player-browse {