FIX: Modals on Android when keyboard is visible (#24442)
This commit is contained in:
parent
f8a27dcbec
commit
36606a2157
|
@ -8,6 +8,7 @@
|
||||||
@import "buttons";
|
@import "buttons";
|
||||||
@import "compose";
|
@import "compose";
|
||||||
@import "dashboard";
|
@import "dashboard";
|
||||||
|
@import "dialog";
|
||||||
@import "directory";
|
@import "directory";
|
||||||
@import "discourse";
|
@import "discourse";
|
||||||
@import "edit-category";
|
@import "edit-category";
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
.dialog-container {
|
||||||
|
// fixes modal placement on Android when keyboard is visible
|
||||||
|
html.keyboard-visible:not(.ios-device) & {
|
||||||
|
height: calc(100% - env(keyboard-inset-height));
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,15 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fixes modal placement on Android when keyboard is visible
|
||||||
|
html.keyboard-visible:not(.ios-device) & {
|
||||||
|
height: calc(100% - env(keyboard-inset-height));
|
||||||
|
|
||||||
|
.d-modal__container {
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//legacy
|
//legacy
|
||||||
|
|
Loading…
Reference in New Issue