From 423802fbce93c0cf98187b33a97d4edc9cdb34ee Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 6 May 2020 23:05:47 -0400 Subject: [PATCH] UX: Fix modal positioning when iOS keyboard is visible --- app/assets/stylesheets/common/base/modal.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss index 9667a0cb475..5d10d6d150c 100644 --- a/app/assets/stylesheets/common/base/modal.scss +++ b/app/assets/stylesheets/common/base/modal.scss @@ -141,6 +141,13 @@ z-index: z("modal", "content"); overflow: auto; + .keyboard-visible & { + height: calc(var(--composer-vh, 1vh) * 100); + .modal-inner-container { + max-height: 100%; + } + } + &:not(.history-modal) { .modal-body:not(.reorder-categories):not(.poll-ui-builder) { max-height: 80vh !important;