Added resizing inputbox on focus so that replying to The Discourse™ is less painful
This commit is contained in:
parent
208b2ed125
commit
600b2d5bbd
1 changed files with 21 additions and 6 deletions
|
@ -2,7 +2,22 @@
|
||||||
<div class="post-status-form">
|
<div class="post-status-form">
|
||||||
<form @submit.prevent="postStatus(newStatus)">
|
<form @submit.prevent="postStatus(newStatus)">
|
||||||
<div class="form-group" >
|
<div class="form-group" >
|
||||||
<textarea @click="setCaret" @keyup="setCaret" v-model="newStatus.status" :placeholder="$t('post_status.default')" rows="1" class="form-control" @keydown.down="cycleForward" @keydown.up="cycleBackward" @keydown.shift.tab="cycleBackward" @keydown.tab="cycleForward" @keydown.enter="replaceCandidate" @keydown.meta.enter="postStatus(newStatus)" @keyup.ctrl.enter="postStatus(newStatus)" @drop="fileDrop" @dragover.prevent="fileDrag" @input="resize" @paste="paste"></textarea>
|
<textarea
|
||||||
|
@click="setCaret"
|
||||||
|
@keyup="setCaret" v-model="newStatus.status" :placeholder="$t('post_status.default')" rows="1" class="form-control"
|
||||||
|
@keydown.down="cycleForward"
|
||||||
|
@keydown.up="cycleBackward"
|
||||||
|
@keydown.shift.tab="cycleBackward"
|
||||||
|
@keydown.tab="cycleForward"
|
||||||
|
@keydown.enter="replaceCandidate"
|
||||||
|
@keydown.meta.enter="postStatus(newStatus)"
|
||||||
|
@keyup.ctrl.enter="postStatus(newStatus)"
|
||||||
|
@drop="fileDrop"
|
||||||
|
@dragover.prevent="fileDrag"
|
||||||
|
@input="resize"
|
||||||
|
@focus="resize"
|
||||||
|
@paste="paste">
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div style="position:relative;" v-if="candidates">
|
<div style="position:relative;" v-if="candidates">
|
||||||
<div class="autocomplete-panel">
|
<div class="autocomplete-panel">
|
||||||
|
|
Loading…
Reference in a new issue