]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/common/image-upload-form.tsx
Merge branch 'main' into fix/fix-badges-spacing-componentize
[lemmy-ui.git] / src / shared / components / common / image-upload-form.tsx
index 44a934e91db711b15ec68bb3911c94ce9d5ef609..890f47f2f36b3cb925f5451fe2df8ae6a2364362 100644 (file)
@@ -42,9 +42,9 @@ export class ImageUploadForm extends Component<
               src={this.props.imageSrc}
               height={this.props.rounded ? 60 : ""}
               width={this.props.rounded ? 60 : ""}
-              className={classNames("img-fluid", {
-                "rounded-circle ratio ratio-1x1 object-fit-cover":
-                  this.props.rounded,
+              className={classNames({
+                "rounded-circle object-fit-cover": this.props.rounded,
+                "img-fluid": !this.props.rounded,
               })}
             />
             <button