Make paper-scrollable in fullscreen dialog resize properly ()

* remove min-height to make paper-scrollable work properly.
Hack fullscreen background behind it

* apply fix to hassio-markdown-dialog
This commit is contained in:
NovapaX
2018-04-01 02:32:02 +02:00
committed by Paulus Schoutsen
parent 6447e98caa
commit d7d167fbf9
3 changed files with 20 additions and 2 deletions

@@ -31,7 +31,16 @@
@media all and (max-width: 450px), all and (max-height: 500px) { @media all and (max-width: 450px), all and (max-height: 500px) {
paper-dialog { paper-dialog {
max-height: 100%; max-height: 100%;
height: 100%; }
paper-dialog::before {
content: "";
position: fixed;
z-index: -1;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: inherit;
} }
app-toolbar { app-toolbar {
color: var(--text-primary-color); color: var(--text-primary-color);

@@ -43,6 +43,16 @@
:host { :host {
@apply(--ha-dialog-fullscreen); @apply(--ha-dialog-fullscreen);
} }
:host::before {
content: "";
position: fixed;
z-index: -1;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: inherit;
}
} }
:host([data-domain=camera]) { :host([data-domain=camera]) {

@@ -164,7 +164,6 @@
} }
--ha-dialog-fullscreen: { --ha-dialog-fullscreen: {
min-height: 100% !important;
width: 100% !important; width: 100% !important;
border-radius: 0px; border-radius: 0px;
position: fixed !important; position: fixed !important;