mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 08:19:13 +00:00
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 "compose";
|
||||
@import "dashboard";
|
||||
@import "dialog";
|
||||
@import "directory";
|
||||
@import "discourse";
|
||||
@import "edit-category";
|
||||
|
6
app/assets/stylesheets/mobile/dialog.scss
Normal file
6
app/assets/stylesheets/mobile/dialog.scss
Normal file
@ -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%;
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user