feat: add new feature and fix bugs

This commit is contained in:
2026-08-13 16:38:49 +03:30
parent 9c9450ffca
commit 9fd8543b7e
23 changed files with 1076 additions and 168 deletions

View File

@@ -35,10 +35,10 @@ export default function MuiModal({
onClose={handleCloseCustom || handleClose}
aria-labelledby="modal-modal-title"
aria-describedby="modal-modal-description"
className="relative w-full h-full flex justify-center items-center !border-none !outline-none !ring-0"
className="relative w-full h-full flex justify-center items-center !border-none !outline-none !ring-0 overflow-y-auto p-4"
>
<motion.div
className="max-md:w-72 md:w-80 lg:w-96 min-h-80 shadow-xl shadow-[rgb(20,20,20)] bg-[rgb(20,20,20,0.99)] rounded-lg p-4 relative flex flex-col justify-between items-center gap-4"
className="max-md:w-72 md:w-80 lg:w-96 max-h-[90vh] shadow-xl shadow-[rgb(20,20,20)] bg-[rgb(20,20,20,0.99)] rounded-lg p-4 relative flex flex-col justify-between items-center gap-4 my-auto overflow-y-auto"
initial={{ y: "-100vw", opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.5 }}
@@ -54,7 +54,7 @@ export default function MuiModal({
<IoClose className="w-7 h-7" />
</button>
</motion.div>
<motion.div className="w-full h-full flex flex-col justify-between text-center items-center">
<motion.div className="w-full flex-1 flex flex-col justify-between text-center items-center overflow-y-auto">
{children}
</motion.div>
<motion.div