From deed524a7f7ac9b3e8ebd9dcfe3e22809ad4f8f5 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Wed, 21 Jun 2023 00:20:05 -0400 Subject: [PATCH] fix: Small adjustments to create post form --- .../components/common/language-select.tsx | 7 ++-- src/shared/components/post/create-post.tsx | 2 +- src/shared/components/post/post-form.tsx | 38 ++++++++----------- 3 files changed, 20 insertions(+), 27 deletions(-) diff --git a/src/shared/components/common/language-select.tsx b/src/shared/components/common/language-select.tsx index 619e1a5..02deb43 100644 --- a/src/shared/components/common/language-select.tsx +++ b/src/shared/components/common/language-select.tsx @@ -66,10 +66,9 @@ export class LanguageSelect extends Component { {i18n.t(this.props.multiple ? "language_plural" : "language")}
{this.selectBtn} {this.props.multiple && ( diff --git a/src/shared/components/post/create-post.tsx b/src/shared/components/post/create-post.tsx index ebdf999..ff136c2 100644 --- a/src/shared/components/post/create-post.tsx +++ b/src/shared/components/post/create-post.tsx @@ -178,7 +178,7 @@ export class CreatePost extends Component< id="createPostForm" className="col-12 col-lg-6 offset-lg-3 mb-4" > -
{i18n.t("create_post")}
+

{i18n.t("create_post")}

{ />
+ {!this.props.post_view && (
)} {this.props.enableNsfw && ( -
- - {i18n.t("nsfw")} - -
-
- -
-
+
+ +
)} -