feat: collapse mentions (#1034)

This commit is contained in:
Anthony Fu 2023-01-13 01:08:56 +01:00 committed by GitHub
parent d39ea9a6de
commit 36ae8be40a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 145 additions and 15 deletions

View 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>

View file

@ -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
})