Use textarea instead of input for composing alt text (#15)

Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/15
Co-authored-by: sfr <sol@solfisher.com>
Co-committed-by: sfr <sol@solfisher.com>
This commit is contained in:
sfr 2022-06-26 17:51:13 +00:00 committed by floatingghost
parent 7025cb8bb0
commit 263ef17816
4 changed files with 39 additions and 6 deletions

View file

@ -248,14 +248,15 @@
class="description-container"
:class="{ '-static': !edit }"
>
<input
<textarea
v-if="edit"
v-model="localDescription"
type="text"
class="description-field"
:placeholder="$t('post_status.media_description')"
@keydown.enter.prevent=""
>
rows="1"
cols="1"
@input="resize"
/>
<p v-else>
{{ localDescription }}
</p>