feat: collapse mentions (#1034)
This commit is contained in:
parent
d39ea9a6de
commit
36ae8be40a
6 changed files with 145 additions and 15 deletions
5
components/content/ContentMentionGroup.vue
Normal file
5
components/content/ContentMentionGroup.vue
Normal file
|
@ -0,0 +1,5 @@
|
|||
<template>
|
||||
<p flex="~ gap-1" items-center text-sm class="zen-none">
|
||||
<span i-ri-arrow-right-line ml--1 text-secondary-light /><slot />
|
||||
</p>
|
||||
</template>
|
|
@ -19,6 +19,7 @@ const vnode = $computed(() => {
|
|||
emojis: emojisObject.value,
|
||||
mentions: 'mentions' in status ? status.mentions : undefined,
|
||||
markdown: true,
|
||||
collapseMentionLink: !!('inReplyToId' in status && status.inReplyToId),
|
||||
})
|
||||
return vnode
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue