UX: autofocus the edit reason text field
This commit is contained in:
parent
db1b0e2235
commit
3ad1423c53
|
@ -37,7 +37,7 @@
|
||||||
{{#if canEdit}}
|
{{#if canEdit}}
|
||||||
{{#if showEditReason}}
|
{{#if showEditReason}}
|
||||||
<div class="edit-reason-input">
|
<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>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a {{action "displayEditReason"}} class="display-edit-reason">{{i18n 'composer.show_edit_reason'}}</a>
|
<a {{action "displayEditReason"}} class="display-edit-reason">{{i18n 'composer.show_edit_reason'}}</a>
|
||||||
|
|
|
@ -284,9 +284,10 @@
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
top: 18px;
|
top: 18px;
|
||||||
#edit-reason {
|
#edit-reason {
|
||||||
margin: 0;
|
margin: -7px 0 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
float: left;
|
float: left;
|
||||||
|
width: 300px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#reply-title {
|
#reply-title {
|
||||||
|
|
Loading…
Reference in New Issue