refactor: use dropdown instead of drawer for user switch
This commit is contained in:
parent
4703b6884a
commit
39e200f639
7 changed files with 36 additions and 57 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue