From b97eab6704fdc500bab4b3af23dc6eb358ee0249 Mon Sep 17 00:00:00 2001
From: ljx0517 <ljx0517@gmail.com>
Date: Wed, 26 Feb 2020 12:33:46 +0800
Subject: [PATCH] fix image component position

---
 .../upload-image-with-preview.component.scss                   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/app/common/upload-image-with-preview/upload-image-with-preview.component.scss b/src/app/common/upload-image-with-preview/upload-image-with-preview.component.scss
index 287595d..98dad11 100644
--- a/src/app/common/upload-image-with-preview/upload-image-with-preview.component.scss
+++ b/src/app/common/upload-image-with-preview/upload-image-with-preview.component.scss
@@ -52,6 +52,9 @@
     .p-preview {
       width: 100%;
       height: 100%;
+      background-size: contain;
+      background-repeat: no-repeat;
+      background-position: 50% 50%;
       //background-image: url("https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png");
     }
   }
-- 
2.21.0