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,21 +65,6 @@ onUnmounted(() => {
<template> <template>
<teleport to="body"> <teleport to="body">
<transition leave-active-class="duration-300">
<div v-show="show" class="fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50" scroll-region>
<transition
enter-active-class="ease-out duration-300"
enter-from-class="opacity-0"
enter-to-class="opacity-100"
leave-active-class="ease-in duration-300"
leave-from-class="opacity-100"
leave-to-class="opacity-0"
>
<div v-show="show" class="fixed inset-0 transform transition-all" @click="close">
<div class="absolute inset-0 bg-primary text-primary-t dark:bg-primary-d dark:text-primary-dt opacity-75" />
</div>
</transition>
<transition <transition
enter-active-class="ease-out duration-300" enter-active-class="ease-out duration-300"
enter-from-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" enter-from-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
@ -88,6 +73,7 @@ onUnmounted(() => {
leave-from-class="opacity-100 translate-y-0 sm:scale-100" 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" leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
> >
<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 <div
v-show="show" 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="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"
@ -95,7 +81,6 @@ onUnmounted(() => {
> >
<slot v-if="show" /> <slot v-if="show" />
</div> </div>
</transition>
</div> </div>
</transition> </transition>
</teleport> </teleport>