feat: display status meta over card (#325)

This commit is contained in:
patak 2022-12-06 12:07:17 +01:00 committed by GitHub
parent 22a82bca22
commit 8537f9e0ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 115 additions and 82 deletions

View file

@ -14,7 +14,8 @@ function groupItems(items: Notification[]): (Notification | GroupedNotifications
let followGroup: Notification[] = []
const bump = () => {
if (followGroup.length === 1) {
const alwaysGroup = true
if (!alwaysGroup && followGroup.length === 1) {
results.push(followGroup[0])
followGroup = []
}
@ -58,13 +59,13 @@ const { clearNotifications } = useNotifications()
<NotificationGroupedFollow
v-if="item.type === 'grouped-follow'"
:items="item"
border="b base" pt-4
border="b base"
/>
<NotificationCard
v-else
:notification="item"
hover:bg-active
border="b base" pt-4
border="b base"
/>
</template>
</template>