From 3c6505b9fd647d5fc96227f8b6161c2d84fe7267 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 2 Jul 2023 16:08:55 -0400 Subject: [PATCH] fix: Add some spacing between upload field and image; fix circle image aspect ratio --- .../components/common/image-upload-form.tsx | 10 ++++--- src/shared/components/post/post-form.tsx | 28 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) 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 && ( <>
-- 2.44.1