From b6dd47e1fa3b748c62210e9a70413feb3bcecf4e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 13 Aug 2021 19:20:32 +0800
Subject: [PATCH] 图片附件预览

---
 src/styles/common.scss |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/styles/common.scss b/src/styles/common.scss
index eb4bded..f18866b 100644
--- a/src/styles/common.scss
+++ b/src/styles/common.scss
@@ -44,16 +44,16 @@
       height: calc(100% - 62px);
     }
 
-    img {
+    div.img {
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       margin: auto;
+      width: calc(100% - 8px);
       height: calc(100% - 8px);
-      max-width: calc(100% - 8px);
-      max-height: calc(100% - 8px);
+      overflow: hidden;
     }
   }
 

--
Gitblit v1.9.3