diff --git a/src/frontend/src/modals/baseModal/index.tsx b/src/frontend/src/modals/baseModal/index.tsx index c17c9e4ba..c7053816a 100644 --- a/src/frontend/src/modals/baseModal/index.tsx +++ b/src/frontend/src/modals/baseModal/index.tsx @@ -59,20 +59,25 @@ function BaseModal({ (child) => (child as React.ReactElement).type === Content ); - let sizeClass = ""; + let minWidth: string; + let height: string; switch (size) { case "small": - sizeClass = "min-w-[40vw]"; + minWidth = "min-w-[40vw]"; + height = "h-[40vh]"; break; case "medium": - sizeClass = "min-w-[60vw]"; + minWidth = "min-w-[60vw]"; + height = "h-[60vh]"; break; case "large": - sizeClass = "min-w-[80vw]"; + minWidth = "min-w-[80vw]"; + height = "h-[80vh]"; break; default: - sizeClass = "min-w-[80vw]"; + minWidth = "min-w-[80vw]"; + height = "h-[80vh]"; break; } @@ -80,9 +85,9 @@ function BaseModal({ return ( - + {headerChild} -
{ContentChild}
+
{ContentChild}
);