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 />