Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: the images in the image upload component are forced to enlarge #1039

shuai75bd7214e746
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<Props> = ({
className={classNames(imgClassNames)}
src={value}
alt=""
- height="100%"
- width="100%"
+ style={{ maxWidth: '100%', maxHeight: '100%' }}
/>
</div>
<ButtonGroup vertical className="fit-content">