diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-29 12:42:22 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-29 12:42:22 -0700 |
commit | 746362f9ef5bf9ae409c8ecfe1f0551f64044569 (patch) | |
tree | 7dc2b13ab7e5df8f2d0e0197ece667f64bf2b222 /ui | |
parent | f57004d7fa09908ab0e041e79e838db6d4fc14c3 (diff) |
Adding a max character of 10k to textareas
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/comment-form.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/community-form.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/post-form.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/site-form.tsx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 1b4eda99..a69ae06f 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -56,7 +56,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> { <form onSubmit={linkEvent(this, this.handleCommentSubmit)}> <div class="form-group row"> <div class="col-sm-12"> - <textarea class="form-control" value={this.state.commentForm.content} onInput={linkEvent(this, this.handleCommentContentChange)} required disabled={this.props.disabled} rows={2} /> + <textarea class="form-control" value={this.state.commentForm.content} onInput={linkEvent(this, this.handleCommentContentChange)} required disabled={this.props.disabled} rows={2} maxLength={10000} /> </div> </div> <div class="row"> diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 66071a3f..e295dcbe 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -88,7 +88,7 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt <div class="form-group row"> <label class="col-12 col-form-label">Sidebar</label> <div class="col-12"> - <textarea value={this.state.communityForm.description} onInput={linkEvent(this, this.handleCommunityDescriptionChange)} class="form-control" rows={3} /> + <textarea value={this.state.communityForm.description} onInput={linkEvent(this, this.handleCommunityDescriptionChange)} class="form-control" rows={3} maxLength={10000} /> </div> </div> <div class="form-group row"> diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index e4e75df4..0154a923 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -94,7 +94,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> { <div class="form-group row"> <label class="col-sm-2 col-form-label">Body</label> <div class="col-sm-10"> - <textarea value={this.state.postForm.body} onInput={linkEvent(this, this.handlePostBodyChange)} class="form-control" rows={4} /> + <textarea value={this.state.postForm.body} onInput={linkEvent(this, this.handlePostBodyChange)} class="form-control" rows={4} maxLength={10000} /> </div> </div> {/* Cant change a community from an edit */} diff --git a/ui/src/components/site-form.tsx b/ui/src/components/site-form.tsx index 9c0f472b..7c51be40 100644 --- a/ui/src/components/site-form.tsx +++ b/ui/src/components/site-form.tsx @@ -49,7 +49,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> { <div class="form-group row"> <label class="col-12 col-form-label">Sidebar</label> <div class="col-12"> - <textarea value={this.state.siteForm.description} onInput={linkEvent(this, this.handleSiteDescriptionChange)} class="form-control" rows={3} /> + <textarea value={this.state.siteForm.description} onInput={linkEvent(this, this.handleSiteDescriptionChange)} class="form-control" rows={3} maxLength={10000} /> </div> </div> <div class="form-group row"> |