change z indexes

This commit is contained in:
MathieuG-P
2023-01-03 22:33:19 +01:00
parent c99bdbb8d0
commit f44c4e66a0
2 changed files with 2 additions and 2 deletions
@@ -39,7 +39,7 @@ export function Modal() {
return (
<AnimatePresence>
{ModalComponent && (
<div className="top-0 absolute w-screen h-screen flex content-center items-center justify-center z-50">
<div className="top-0 absolute w-screen h-screen flex content-center items-center justify-center z-[90]">
<motion.span key="modal-overlay" onClick={() => modalSevice.resolve({exitCode: ModalExitCode.NO_CHOICE})} className="absolute top-0 bottom-0 right-0 left-0 bg-black" initial={{opacity: 0}} animate={{opacity: ModalComponent && .60}} exit={{opacity: 0}} transition={{duration: .2}}/>
<motion.div key="modal" initial={{y: "100vh"}} animate={{y: 0}} exit={{y: "100vh"}}>
<div className="relative p-4 text-gray-800 dark:text-gray-200 rounded-md shadow-lg shadow-black bg-gradient-to-br from-light-main-color-3 to-light-main-color-2 dark:from-main-color-3 dark:to-main-color-2">
@@ -11,7 +11,7 @@ export function NotificationOverlay() {
return (
<ul className="absolute h-full w-0 top-0 right-0 z-40 pt-10">
<ul className="absolute h-full w-0 top-0 right-0 z-[100] pt-10">
<AnimatePresence>
{notifications?.map(n => <NotificationItem key={n.id} resolver={n.resolver} notification={n.notification}/>)}
</AnimatePresence>