FIX: Fondo de los modals superpuesto

This commit is contained in:
Moisés Cortés C. 2025-05-24 18:11:55 -06:00
parent c8bab712d3
commit c3965ef4cf

View File

@ -65,37 +65,22 @@ onUnmounted(() => {
<template> <template>
<teleport to="body"> <teleport to="body">
<transition leave-active-class="duration-300"> <transition
<div v-show="show" class="fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50" scroll-region> enter-active-class="ease-out duration-300"
<transition enter-from-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
enter-active-class="ease-out duration-300" enter-to-class="opacity-100 translate-y-0 sm:scale-100"
enter-from-class="opacity-0" leave-active-class="ease-in duration-300"
enter-to-class="opacity-100" leave-from-class="opacity-100 translate-y-0 sm:scale-100"
leave-active-class="ease-in duration-300" leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
leave-from-class="opacity-100" >
leave-to-class="opacity-0" <div v-show="show" class="fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 bg-primary/90 z-50 transition-all" scroll-region>
<div
v-show="show"
class="mb-6 bg-page text-page-t dark:bg-page-d dark:text-page-dt rounded-sm overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto"
:class="maxWidthClass"
> >
<div v-show="show" class="fixed inset-0 transform transition-all" @click="close"> <slot v-if="show" />
<div class="absolute inset-0 bg-primary text-primary-t dark:bg-primary-d dark:text-primary-dt opacity-75" /> </div>
</div>
</transition>
<transition
enter-active-class="ease-out duration-300"
enter-from-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
enter-to-class="opacity-100 translate-y-0 sm:scale-100"
leave-active-class="ease-in duration-300"
leave-from-class="opacity-100 translate-y-0 sm:scale-100"
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
>
<div
v-show="show"
class="mb-6 bg-page text-page-t dark:bg-page-d dark:text-page-dt rounded-sm overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto"
:class="maxWidthClass"
>
<slot v-if="show" />
</div>
</transition>
</div> </div>
</transition> </transition>
</teleport> </teleport>