feat: allow showing in-reply-to message

This commit is contained in:
Shivam Mishra
2023-10-10 19:18:33 +05:30
parent cbae95422d
commit a2af5e25e1
3 changed files with 55 additions and 0 deletions
@@ -0,0 +1,22 @@
<script setup>
import { computed } from 'vue';
import { extractTextFromMarkdown } from 'dashboard/helper/editorHelper';
const { content } = defineProps({
content: {
type: String,
required: true,
},
});
const cleanedContent = computed(() => extractTextFromMarkdown(content));
</script>
<template>
<div
class="p-2 -mx-2 overflow-hidden rounded-md bg-woot-600 line-clamp-3 min-w-[15rem] mb-2 cursor-pointer"
@click="$emit('click')"
>
{{ cleanedContent }}
</div>
</template>