From be6b1b119f15a2aa90e42361f4158598b5efef9b Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sun, 31 Mar 2024 17:32:31 -0300 Subject: [PATCH] return base modal before bug on size --- src/frontend/src/modals/baseModal/index.tsx | 37 ++++++++++----------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/src/frontend/src/modals/baseModal/index.tsx b/src/frontend/src/modals/baseModal/index.tsx index 6df524b54..08f00ae8d 100644 --- a/src/frontend/src/modals/baseModal/index.tsx +++ b/src/frontend/src/modals/baseModal/index.tsx @@ -115,47 +115,44 @@ function BaseModal({ break; case "smaller": minWidth = "min-w-[40vw]"; - height = ""; + height = "h-[11rem]"; break; case "smaller-h-full": minWidth = "min-w-[40vw]"; - height = " "; + height = "h-full"; break; case "small": minWidth = "min-w-[40vw]"; - height = ""; + height = "h-[40vh]"; break; case "small-h-full": minWidth = "min-w-[40vw]"; - height = " "; break; case "medium": minWidth = "min-w-[60vw]"; - height = ""; + height = "h-[60vh]"; break; case "medium-h-full": minWidth = "min-w-[60vw]"; - height = " "; break; case "large": - minWidth = "min-w-[85vw]" ; - height = "h-[90vh]"; + minWidth = "min-w-[85vw]"; + height = "h-[80vh]"; break; case "three-cards": minWidth = "min-w-[1066px]"; - height = ""; + height = "h-[80vh]"; break; case "large-thin": minWidth = "min-w-[65vw]"; - height = "h-[90vh]"; + height = "h-[80vh]"; break; case "large-h-full": minWidth = "min-w-[80vw]"; - height = " "; break; default: minWidth = "min-w-[80vw]"; - height = ""; + height = "h-[80vh]"; break; } @@ -171,34 +168,34 @@ function BaseModal({ {type === "modal" ? ( {triggerChild} - -
+ +
{headerChild}
{ContentChild}
{ContentFooter && ( -
{ContentFooter}
+
{ContentFooter}
)}
) : ( {triggerChild} - -
+ +
{headerChild}
{ContentChild}
{ContentFooter && ( -
{ContentFooter}
+
{ContentFooter}
)}