From 3ca2bce9f0d3e490f570f297da91766b67e551de Mon Sep 17 00:00:00 2001 From: Zetaphor Date: Fri, 16 Jun 2023 14:10:56 -0300 Subject: [PATCH] Add classes to post and comment repy textareas --- src/shared/components/comment/comment-form.tsx | 3 ++- src/shared/components/comment/comment-node.tsx | 2 ++ src/shared/components/post/post.tsx | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index c60cde20..7e4aa9fe 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -21,6 +21,7 @@ interface CommentFormProps { onReplyCancel?(): void; allLanguages: Language[]; siteLanguages: number[]; + containerClass?: string; onUpsertComment(form: EditComment | CreateComment): void; } @@ -40,7 +41,7 @@ export class CommentForm extends Component { : undefined; return ( -
+
{UserService.Instance.myUserInfo ? ( { focus allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} + containerClass="comment-comment-container" onUpsertComment={this.props.onEditComment} /> )} @@ -1143,6 +1144,7 @@ export class CommentNode extends Component { focus allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} + containerClass="comment-comment-container" onUpsertComment={this.props.onCreateComment} /> )} diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 9c68532b..652c38c2 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -384,6 +384,7 @@ export class Post extends Component { disabled={res.post_view.post.locked} allLanguages={this.state.siteRes.all_languages} siteLanguages={this.state.siteRes.discussion_languages} + containerClass="post-comment-container" onUpsertComment={this.handleCreateComment} finished={this.state.finished.get(0)} />