Various UI fixes, add placeholder to the text editor

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-10-31 11:43:18 +01:00
parent 9ce618a267
commit 695d773d50
17 changed files with 111 additions and 243 deletions

View File

@@ -155,6 +155,7 @@
:aria-label="t('Comment body')"
class="flex-1"
@submit="replyToComment"
:placeholder="t('Write a new reply')"
/>
<o-button
:disabled="newComment.text.trim().length === 0"
@@ -201,7 +202,7 @@
</li>
</template>
<script lang="ts" setup>
import EditorComponent from "@/components/TextEditor.vue";
import type EditorComponent from "@/components/TextEditor.vue";
import { formatDistanceToNow } from "date-fns";
import { CommentModeration } from "@/types/enums";
import { CommentModel, IComment } from "../../types/comment.model";