From 75bd7214e746deb4f2118c7f26e79110795be73d Mon Sep 17 00:00:00 2001 From: shuai Date: Wed, 24 Jul 2024 10:57:04 +0800 Subject: [PATCH] fix: the images in the image upload component are forced to enlarge #1039 --- ui/src/components/BrandUpload/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/components/BrandUpload/index.tsx b/ui/src/components/BrandUpload/index.tsx index 34fcd73b..cf92d46e 100644 --- a/ui/src/components/BrandUpload/index.tsx +++ b/ui/src/components/BrandUpload/index.tsx @@ -56,8 +56,7 @@ const Index: FC = ({ className={classNames(imgClassNames)} src={value} alt="" - height="100%" - width="100%" + style={{ maxWidth: '100%', maxHeight: '100%' }} />