1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 22:56:09 +09:00

fix: make user dropdown to be fixed (#1148)

This commit is contained in:
webfansplz 2023-01-15 16:26:43 +08:00 committed by GitHub
parent 4c25a27c8d
commit 274e182bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<template>
<VDropdown :distance="0" placement="top-start">
<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 />