From c254b984055a65a979a665bfbdf45009c2a24e06 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Fri, 13 Jun 2025 13:03:27 +0530 Subject: [PATCH] Fixed image scaling inside preview container to fully fill the space --- src/components/common/ImagePreviewstyle.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/common/ImagePreviewstyle.css b/src/components/common/ImagePreviewstyle.css index 1b677695..9b6f81d2 100644 --- a/src/components/common/ImagePreviewstyle.css +++ b/src/components/common/ImagePreviewstyle.css @@ -43,8 +43,12 @@ } .img-preview { + width: 100%; + height: 500px; + object-fit: cover; + object-position: center; +} +.img-preview img{ width: 100%; - height: 500px; - background-color: #E9E9E9; - text-align: center; + height: 100% } \ No newline at end of file