1
0
elk/components/user/UserDropdown.vue
2023-01-15 09:26:43 +01:00

12 lines
451 B
Vue

<template>
<VDropdown :distance="0" placement="top-start" strategy="fixed">
<button btn-action-icon :aria-label="$t('action.switch_account')">
<div :class="{ 'hidden xl:block': currentUser }" i-ri:more-2-line />
<AccountAvatar v-if="currentUser" xl:hidden :account="currentUser.account" w-9 h-9 square />
</button>
<template #popper="{ hide }">
<UserSwitcher @click="hide" />
</template>
</VDropdown>
</template>