From 2f5f9281ddbcef4b786996642227b80ef5bfb8d8 Mon Sep 17 00:00:00 2001 From: Rasmus Nielsen Date: Thu, 18 Jun 2020 13:35:50 +0200 Subject: [PATCH] fix scrollable modal --- scss/_modal.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scss/_modal.scss b/scss/_modal.scss index 44519724e515..e774242f9010 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -56,9 +56,10 @@ } .modal-dialog-scrollable { - max-height: subtract(100%, $modal-dialog-margin * 2); + display: flex; .modal-content { + max-height: subtract(100vh, $modal-dialog-margin * 2); overflow: hidden; } @@ -176,8 +177,8 @@ margin: $modal-dialog-margin-y-sm-up auto; } - .modal-dialog-scrollable { - max-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2); + .modal-dialog-scrollable .modal-content { + max-height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2); } .modal-dialog-centered {