File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -560,8 +560,10 @@ export class BarMediaPlayer extends SubscribeMixin(LitElement) {
560560 var (--card-background-color , white )
561561 );
562562 bor der- to p: 1px solid var(- - divider- color );
563- margin- botto m: var(- - safe- area- inset- botto m, 0px);
564- margin- right: var(- - safe- area- inset- right, 0px);
563+ margin- right: var(- - safe- area- inset- right);
564+ }
565+ : host ([narrow ]) {
566+ margin-left : var (--safe-area-inset-left );
565567 }
566568
567569 mwc-linear-progress {
Original file line number Diff line number Diff line change @@ -376,7 +376,21 @@ class PanelMediaBrowser extends LitElement {
376376
377377 ha-bar-media-player {
378378 position : fixed;
379- width : var (--mdc-top-app-bar-width , 100% );
379+ bottom : var (--safe-area-inset-bottom , 0px );
380+ width : calc (
381+ var (--mdc-top-app-bar-width , 100% ) - var (
382+ --safe-area-inset-right ,
383+ 0px
384+ )
385+ );
386+ }
387+ : host ([narrow ]) ha-bar-media-player {
388+ width : calc (
389+ var (--mdc-top-app-bar-width , 100% ) - var (
390+ --safe-area-inset-left ,
391+ 0px
392+ ) - var (--safe-area-inset-right , 0px )
393+ );
380394 }
381395 ` ,
382396 ] ;
You can’t perform that action at this time.
0 commit comments