style: show character counter only when remaining chars < 500

This commit is contained in:
naskya 2024-08-18 03:04:14 +09:00
parent f423b277cc
commit d335d28056
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -26,6 +26,7 @@
</div>
<div class="right">
<span
v-if="maxTextLength - textLength < 500"
class="text-count"
:class="{ over: textLength > maxTextLength }"
>{{ maxTextLength - textLength }}</span