Skip to content

Commit

Permalink
Fix width issue in edit user modal (#3939)
Browse files Browse the repository at this point in the history
* Fix width input issue in EditUserModal

* update
  • Loading branch information
datlechin authored Jan 9, 2024
1 parent 537f97a commit b58fec7
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions framework/core/js/src/common/components/EditUserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,16 @@ export default class EditUserModal<CustomAttrs extends IEditUserModalAttrs = IEd
'email',
<div className="Form-group">
<label>{app.translator.trans('core.lib.edit_user.email_heading')}</label>
<div>
<input
className="FormControl"
placeholder={extractText(app.translator.trans('core.lib.edit_user.email_label'))}
bidi={this.email}
disabled={this.nonAdminEditingAdmin()}
/>
</div>
<input
className="FormControl"
placeholder={extractText(app.translator.trans('core.lib.edit_user.email_label'))}
bidi={this.email}
disabled={this.nonAdminEditingAdmin()}
/>
{!this.isEmailConfirmed() && this.userIsAdmin(app.session.user) && (
<div>
<Button className="Button Button--block" loading={this.loading} onclick={this.activate.bind(this)}>
{app.translator.trans('core.lib.edit_user.activate_button')}
</Button>
</div>
<Button className="Button Button--block" loading={this.loading} onclick={this.activate.bind(this)}>
{app.translator.trans('core.lib.edit_user.activate_button')}
</Button>
)}
</div>,
30
Expand All @@ -120,17 +116,17 @@ export default class EditUserModal<CustomAttrs extends IEditUserModalAttrs = IEd
/>
{app.translator.trans('core.lib.edit_user.set_password_label')}
</label>
{this.setPassword() && (
<input
className="FormControl"
type="password"
name="password"
placeholder={extractText(app.translator.trans('core.lib.edit_user.password_label'))}
bidi={this.password}
disabled={this.nonAdminEditingAdmin()}
/>
)}
</div>
{this.setPassword() && (
<input
className="FormControl"
type="password"
name="password"
placeholder={extractText(app.translator.trans('core.lib.edit_user.password_label'))}
bidi={this.password}
disabled={this.nonAdminEditingAdmin()}
/>
)}
</div>,
20
);
Expand Down

0 comments on commit b58fec7

Please sign in to comment.