mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 17:44:16 +00:00
* Moved title field to the top of post-form * Remove whitespace * Trigger build * Trigger build --------- Co-authored-by: drumlin <>
This commit is contained in:
parent
f27cbb3224
commit
c8ab91bdd6
|
@ -342,6 +342,32 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
) && !this.state.submitted
|
) && !this.state.submitted
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<div className="mb-3 row">
|
||||||
|
<label className="col-sm-2 col-form-label" htmlFor="post-title">
|
||||||
|
{I18NextService.i18n.t("title")}
|
||||||
|
</label>
|
||||||
|
<div className="col-sm-10">
|
||||||
|
<textarea
|
||||||
|
value={this.state.form.name}
|
||||||
|
id="post-title"
|
||||||
|
onInput={linkEvent(this, handlePostNameChange)}
|
||||||
|
className={`form-control ${
|
||||||
|
!validTitle(this.state.form.name) && "is-invalid"
|
||||||
|
}`}
|
||||||
|
required
|
||||||
|
rows={1}
|
||||||
|
minLength={3}
|
||||||
|
maxLength={MAX_POST_TITLE_LENGTH}
|
||||||
|
/>
|
||||||
|
{!validTitle(this.state.form.name) && (
|
||||||
|
<div className="invalid-feedback">
|
||||||
|
{I18NextService.i18n.t("invalid_post_title")}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{this.renderSuggestedPosts()}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="mb-3 row">
|
<div className="mb-3 row">
|
||||||
<label className="col-sm-2 col-form-label" htmlFor="post-url">
|
<label className="col-sm-2 col-form-label" htmlFor="post-url">
|
||||||
{I18NextService.i18n.t("url")}
|
{I18NextService.i18n.t("url")}
|
||||||
|
@ -453,32 +479,6 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mb-3 row">
|
|
||||||
<label className="col-sm-2 col-form-label" htmlFor="post-title">
|
|
||||||
{I18NextService.i18n.t("title")}
|
|
||||||
</label>
|
|
||||||
<div className="col-sm-10">
|
|
||||||
<textarea
|
|
||||||
value={this.state.form.name}
|
|
||||||
id="post-title"
|
|
||||||
onInput={linkEvent(this, handlePostNameChange)}
|
|
||||||
className={`form-control ${
|
|
||||||
!validTitle(this.state.form.name) && "is-invalid"
|
|
||||||
}`}
|
|
||||||
required
|
|
||||||
rows={1}
|
|
||||||
minLength={3}
|
|
||||||
maxLength={MAX_POST_TITLE_LENGTH}
|
|
||||||
/>
|
|
||||||
{!validTitle(this.state.form.name) && (
|
|
||||||
<div className="invalid-feedback">
|
|
||||||
{I18NextService.i18n.t("invalid_post_title")}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{this.renderSuggestedPosts()}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-3 row">
|
<div className="mb-3 row">
|
||||||
<label className="col-sm-2 col-form-label">
|
<label className="col-sm-2 col-form-label">
|
||||||
{I18NextService.i18n.t("body")}
|
{I18NextService.i18n.t("body")}
|
||||||
|
|
Loading…
Reference in a new issue