From 7dde66391775bb234532fa2b2b2bd7731c83161c Mon Sep 17 00:00:00 2001 From: Chris Merck Date: Wed, 21 Jun 2023 12:49:47 +0200 Subject: [PATCH] fix: size of image preview --- src/sass/pages/_chat.sass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sass/pages/_chat.sass b/src/sass/pages/_chat.sass index 2bff114..f15e5eb 100644 --- a/src/sass/pages/_chat.sass +++ b/src/sass/pages/_chat.sass @@ -710,7 +710,8 @@ #image-modal position: relative - width: calc( 100% - 6rem ) + height: calc( 100% - 6rem ) + max-width: calc(100% - 6rem) margin: auto padding: 3rem border-radius: 3.3rem @@ -725,6 +726,8 @@ .image position: relative margin: 0 + width: 100% + height: 100% &__close position: absolute @@ -741,7 +744,7 @@ &__preview height: 100% - width: 100% border: none outline: none - overflow: hidden \ No newline at end of file + overflow: hidden + \ No newline at end of file