From 0651b11fda97e02e517fb52a060a9f3d6bcf175f Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Mon, 1 Nov 2021 21:00:14 +0530 Subject: [PATCH] bug: Fixes the height issue of attachment image preview. (#3296) * bug: Fixes the height issue of attachment image preview * fixes codeclimate issue --- app/javascript/dashboard/assets/scss/_foundation-custom.scss | 2 +- .../dashboard/assets/scss/widgets/_conversation-view.scss | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/assets/scss/_foundation-custom.scss b/app/javascript/dashboard/assets/scss/_foundation-custom.scss index 50b78bf50..1cb529b97 100644 --- a/app/javascript/dashboard/assets/scss/_foundation-custom.scss +++ b/app/javascript/dashboard/assets/scss/_foundation-custom.scss @@ -21,7 +21,7 @@ font-size: $font-size-mini; max-width: 15rem; padding: $space-smaller $space-small; - z-index: 9999; + z-index: 999; } code { diff --git a/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss b/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss index 8c65b92e0..70bf16b95 100644 --- a/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss +++ b/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss @@ -27,7 +27,8 @@ } .modal-image { - max-width: 85%; + max-height: 90%; + max-width: 90%; } .modal-video {