mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix header on media browser in safari (#6838)
This commit is contained in:
parent
01a4d57566
commit
8b1801f378
@ -172,6 +172,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
<div
|
<div
|
||||||
class="header ${classMap({
|
class="header ${classMap({
|
||||||
"no-img": !currentItem.thumbnail,
|
"no-img": !currentItem.thumbnail,
|
||||||
|
"no-dialog": !this.dialog,
|
||||||
})}"
|
})}"
|
||||||
>
|
>
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
@ -543,6 +544,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
.header {
|
.header {
|
||||||
background-color: var(--card-background-color);
|
background-color: var(--card-background-color);
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
position: -webkit-sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
padding: 20px 24px 10px;
|
padding: 20px 24px 10px;
|
||||||
@ -740,6 +742,10 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host([narrow]) .header.no-dialog {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
:host([narrow]) .header_button {
|
:host([narrow]) .header_button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 14px;
|
top: 14px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user