mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
UX: autofocus the edit reason text field
This commit is contained in:
parent
db1b0e2235
commit
3ad1423c53
2 changed files with 3 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
{{#if canEdit}}
|
||||
{{#if showEditReason}}
|
||||
<div class="edit-reason-input">
|
||||
{{text-field value=editReason tabindex="7" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
|
||||
{{text-field autofocus="true" value=editReason tabindex="7" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
|
||||
</div>
|
||||
{{else}}
|
||||
<a {{action "displayEditReason"}} class="display-edit-reason">{{i18n 'composer.show_edit_reason'}}</a>
|
||||
|
|
|
@ -284,9 +284,10 @@
|
|||
margin-left: 10px;
|
||||
top: 18px;
|
||||
#edit-reason {
|
||||
margin: 0;
|
||||
margin: -7px 0 0;
|
||||
padding: 5px;
|
||||
float: left;
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
#reply-title {
|
||||
|
|
Loading…
Reference in a new issue