Fix safari issues and move scrollable to own container (#7029)

This commit is contained in:
Bram Kragten
2020-09-30 11:05:45 +02:00
committed by GitHub
parent 0456669aeb
commit 4f2bad034a
3 changed files with 321 additions and 259 deletions

View File

@@ -90,14 +90,20 @@ class DialogMediaPlayerBrowse extends LitElement {
--dialog-content-padding: 0;
}
ha-media-player-browse {
--media-browser-max-height: 100vh;
}
@media (min-width: 800px) {
ha-dialog {
--mdc-dialog-max-width: 800px;
--dialog-surface-position: fixed;
--dialog-surface-top: 40px;
--mdc-dialog-max-height: calc(100% - 72px);
--mdc-dialog-max-height: calc(100vh - 72px);
}
ha-media-player-browse {
position: initial;
--media-browser-max-height: 100vh - 72px;
width: 700px;
}
}