feat: show followed hashtag badge (#3273)

This commit is contained in:
ayo 2025-04-26 14:53:54 +02:00 committed by GitHub
parent b0f301843b
commit b82e85585c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 36 additions and 7 deletions

View file

@ -3,6 +3,7 @@ import type { mastodon } from 'masto'
const { actions = true, older, newer, hasOlder, hasNewer, main, ...props } = defineProps<{
status: mastodon.v1.Status
followedTag?: string | null
actions?: boolean
context?: mastodon.v2.FilterContext
hover?: boolean
@ -73,6 +74,20 @@ const forceShow = ref(false)
<div :h="showUpperBorder ? '1px' : '0'" w-auto bg-border mb-1 z--1 />
<slot name="meta">
<!-- followed hashtag badge -->
<div flex="~ col" justify-between>
<div
v-if="!!followedTag && followedTag !== ''"
flex="~ gap2" items-center h-auto text-sm text-orange
m="is-5" p="t-1 is-5"
relative text-secondary ws-nowrap
>
<div i-ri:hashtag />
<!-- show first hit followed tag -->
<span>{{ followedTag }}</span>
</div>
</div>
<!-- Pinned status -->
<div flex="~ col" justify-between>
<div