From: Jay Sitter Date: Sun, 2 Jul 2023 20:08:55 +0000 (-0400) Subject: fix: Add some spacing between upload field and image; fix circle image aspect ratio X-Git-Url: http://these/git/ui/assets/static/%7BcanonicalUrl%7D?a=commitdiff_plain;h=3c6505b9fd647d5fc96227f8b6161c2d84fe7267;p=lemmy-ui.git fix: Add some spacing between upload field and image; fix circle image aspect ratio --- diff --git a/src/shared/components/common/image-upload-form.tsx b/src/shared/components/common/image-upload-form.tsx index 74f170b..44a934e 100644 --- a/src/shared/components/common/image-upload-form.tsx +++ b/src/shared/components/common/image-upload-form.tsx @@ -1,4 +1,5 @@ import { randomStr } from "@utils/helpers"; +import classNames from "classnames"; import { Component, linkEvent } from "inferno"; import { HttpService, I18NextService, UserService } from "../../services"; import { toast } from "../../toast"; @@ -34,16 +35,17 @@ export class ImageUploadForm extends Component< return (
{this.props.imageSrc && ( - + {/* TODO: Create "Current Iamge" translation for alt text */} + )} - {this.state.imageLoading && } - {url && isImage(url) && ( - - )} - {this.state.imageDeleteUrl && ( - - )} {this.props.crossPosts && this.props.crossPosts.length > 0 && ( <>