From 29efeff09532397a33bb971e91324f673b296559 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Sat, 12 Nov 2016 00:54:53 +0500 Subject: PLT-4609 - Fixing list modals on mobile (#4536) * PLT-4609 - Fixing list modals on mobile * PLT-4609 - Adjust more modal height --- webapp/sass/components/_modal.scss | 42 ++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 13 deletions(-) (limited to 'webapp/sass/components') diff --git a/webapp/sass/components/_modal.scss b/webapp/sass/components/_modal.scss index 3faf78bc6..f89fb5c40 100644 --- a/webapp/sass/components/_modal.scss +++ b/webapp/sass/components/_modal.scss @@ -125,6 +125,7 @@ } .modal-dialog { + margin-bottom: 0; margin-left: auto; margin-right: auto; max-width: 95%; @@ -237,19 +238,6 @@ top: 0; } - &.more-channel__modal { - .modal-body { - overflow-x: hidden; - padding: 10px 0 15px; - } - - .channel-count { - @include opacity(.8); - float: right; - margin-top: 5px; - } - } - .modal-image { height: 100%; margin: 0 auto; @@ -449,9 +437,37 @@ } } } + + &.more-channel__modal { + .modal-body { + overflow-x: hidden; + padding: 10px 0 15px; + } + + .channel-count { + @include opacity(.8); + float: right; + margin-top: 5px; + } + + .more-modal__list { + max-height: calc(100vh - 270px); + } + } } .more-modal { + .more-modal__list { + height: 100vh; + max-height: calc(100vh - 340px); + } + + &.more-direct-channels { + .more-modal__list { + max-height: calc(100vh - 325px); + } + } + .user-list { margin-top: 10px; overflow-x: hidden; -- cgit v1.2.3-1-g7c22