From: Zetaphor Date: Fri, 16 Jun 2023 17:10:56 +0000 (-0300) Subject: Add classes to post and comment repy textareas X-Git-Url: http://these/git/%7B%60https:/%7Bthis.state.thumbnail%7D?a=commitdiff_plain;h=3ca2bce9f0d3e490f570f297da91766b67e551de;p=lemmy-ui.git Add classes to post and comment repy textareas --- diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index c60cde2..7e4aa9f 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 9c68532..652c38c 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)} />