-
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): notification like avatar not shrink
- Loading branch information
Showing
2 changed files
with
46 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script lang="ts" setup> | ||
import type { GroupedAccountLike } from '~/types' | ||
const { likes } = defineProps<{ | ||
likes: GroupedAccountLike[] | ||
hint: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div v-if="likes.length" flex="~ gap-1"> | ||
<slot name="icon" /> | ||
<div flex="~ col"> | ||
<div flex="~ wrap gap-1"> | ||
<template v-for="i, idx of likes" :key="idx"> | ||
<div flex-shrink-0> | ||
<AccountHoverWrapper class="flex-shrink-0" :account="i.account"> | ||
<NuxtLink :to="getAccountRoute(i.account)"> | ||
<AccountAvatar text-primary font-bold :account="i.account" class="h-1.5em w-1.5em" /> | ||
</NuxtLink> | ||
</AccountHoverWrapper> | ||
</div> | ||
</template> | ||
</div> | ||
<div mt2> | ||
{{ hint }} | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters