From cb7df469c278125c05d160bce90ab7d3c72fc57e Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Tue, 8 Jul 2025 15:24:18 +0530 Subject: [PATCH] added aspect ratio for image view in task comment --- src/components/common/ImagePreviewstyle.css | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/common/ImagePreviewstyle.css b/src/components/common/ImagePreviewstyle.css index abb02579..e5946575 100644 --- a/src/components/common/ImagePreviewstyle.css +++ b/src/components/common/ImagePreviewstyle.css @@ -48,9 +48,8 @@ } .img-preview img { - max-width: 100%; - max-height: 80vh; - object-fit: contain; - display: block; - margin: 0 auto; -} + width: 100%; + height: auto; + aspect-ratio: 16 / 10; + object-fit: cover; +} \ No newline at end of file