feat:update modal

This commit is contained in:
Anang Yusman 2025-04-08 11:25:14 +08:00
parent fea54bf883
commit 142a420366
1 changed files with 10 additions and 1 deletions

View File

@ -193,6 +193,15 @@ const options = {
};
const SurveyFormModal = ({ onClose }: { onClose: () => void }) => {
useEffect(() => {
// Lock body scroll when modal is open
document.body.style.overflow = "hidden";
// Clean up when modal closes
return () => {
document.body.style.overflow = "";
};
}, []);
return (
<Dialog
open
@ -200,7 +209,7 @@ const SurveyFormModal = ({ onClose }: { onClose: () => void }) => {
if (!open) onClose();
}}
>
<DialogContent className="w-[400px] h-[600px] overflow-y-auto">
<DialogContent className="z-50 min-w-max h-[600px] overflow-y-auto">
<DialogHeader>
<DialogTitle className="text-lg font-bold">
SURVEI KEPUASAN PENGGUNA MEDIAHUB POLRI