refactor: use dropdown instead of drawer for user switch

This commit is contained in:
Anthony Fu 2022-11-27 11:34:55 +08:00
parent 4703b6884a
commit 39e200f639
7 changed files with 36 additions and 57 deletions

View file

@ -5,14 +5,10 @@ import {
isPreviewHelpOpen,
isPublishDialogOpen,
isSigninDialogOpen,
isUserSwitcherOpen,
} from '~/composables/dialog'
</script>
<template>
<ModalDialog v-model="isUserSwitcherOpen" type="right">
<UserSwitcher min-w-100 />
</ModalDialog>
<ModalDialog v-model="isSigninDialogOpen">
<UserSignIn m6 />
</ModalDialog>

View file

@ -98,7 +98,7 @@ function onTransitionEnd() {
<template>
<div
v-if="isVisible"
fixed top-0 bottom-0 left-0 right-0 z-40
fixed top-0 bottom-0 left-0 right-0 z-20000
:class="modelValue ? '' : 'pointer-events-none'"
>
<div