From 3e0a32668624a00053abce0d103c7605e53288f1 Mon Sep 17 00:00:00 2001 From: Jeet Mandaliya <45892659+sereneinserenade@users.noreply.github.com> Date: Sun, 27 Mar 2022 00:56:11 +0100 Subject: [PATCH] even better UX, and a demo with comments --- src/components/OuterComment.vue | 4 +++- src/components/Tiptap.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/OuterComment.vue b/src/components/OuterComment.vue index 550cb0a..d071b33 100644 --- a/src/components/OuterComment.vue +++ b/src/components/OuterComment.vue @@ -6,7 +6,9 @@ :class="[`${comment.jsonComments.uuid === activeCommentsInstance.uuid ? 'ml-4' : 'ml-8 cursor-pointer'}`]" @click.stop.prevent="focusContent({ from: comment.from, to: comment.to })" > -
"{{ comment.text }}" 💬
+
{{ i + 1 }}. "{{ comment.text }}" 💬
{ const tiptapEditor = useEditor({ content: ` -

I'm trying to make comment extension, so you can add comment here ☮️ and see how it goes. Add a comment here.

+

I'm trying to make comment extension, so you can add comment here ☮️ and see how it goes. Add a comment here.

`, extensions: [StarterKit, Comment],