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 287595d88a52a7ef1b396bf3c8e1b1eb1b2bfdcd..98dad112e7375a490e4481a61439e04462c3f85d 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"); } }