Merge pull request #1573 from matrix-org/luke/groups-add-style-to-create-group-dialog

Add CSS classes to group ID input in CreateGroupDialog
This commit is contained in:
Luke Barnard 2017-11-03 16:14:59 +00:00 committed by GitHub
commit abff4ee6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,16 +137,19 @@ export default React.createClass({
<div className="mx_CreateGroupDialog_label">
<label htmlFor="groupid">{ _t('Community ID') }</label>
</div>
<div>
<span>+</span>
<input id="groupid" className="mx_CreateGroupDialog_input"
<div className="mx_CreateGroupDialog_input_group">
<span className="mx_CreateGroupDialog_prefix">+</span>
<input id="groupid"
className="mx_CreateGroupDialog_input mx_CreateGroupDialog_input_hasPrefixAndSuffix"
size="32"
placeholder={_t('example')}
onChange={this._onGroupIdChange}
onBlur={this._onGroupIdBlur}
value={this.state.groupId}
/>
<span>:{ MatrixClientPeg.get().getDomain() }</span>
<span className="mx_CreateGroupDialog_suffix">
:{ MatrixClientPeg.get().getDomain() }
</span>
</div>
</div>
<div className="error">