Skip to content

Commit

Permalink
fix supporter
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Aug 21, 2023
1 parent 9225600 commit 6874fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/userpage/heading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ zh-CN:
:style="`background-image: url(${page.user.avatarSrc}); background-position: center`"
class="mask mask-squircle w-44 sm:w-56 md:w-72 lg:w-64 bg-cover aspect-square"
/>
<div class="absolute -top-10 -right-6 tooltip tooltip-primary tooltip-right" :data-tip="t('supporter', { server: cfg.title })">
<div v-if="page.user.roles.includes(UserPrivilege.Supporter)" class="absolute -top-10 -right-6 tooltip tooltip-primary tooltip-right" :data-tip="t('supporter', { server: cfg.title })">
<icon name="twemoji:crown" class="w-20 h-20 rotate-[40deg]" />
</div>
</div>
Expand Down

0 comments on commit 6874fa2

Please sign in to comment.