feat: rework user picker (#568)
This commit is contained in:
parent
8bd93722e2
commit
b1109c2ceb
12 changed files with 60 additions and 57 deletions
11
components/user/UserDropdown.vue
Normal file
11
components/user/UserDropdown.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<VDropdown :distance="0" placement="top-start">
|
||||
<button btn-action-icon :aria-label="$t('action.switch_account')">
|
||||
<div :class="{ 'hidden lg:block': currentUser }" i-ri:more-2-line />
|
||||
<AccountAvatar v-if="currentUser" lg:hidden :account="currentUser.account" w-9 h-9 />
|
||||
</button>
|
||||
<template #popper="{ hide }">
|
||||
<UserSwitcher @click="hide" />
|
||||
</template>
|
||||
</VDropdown>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue