From f390d3a4e9dfa0b74f90f78ff40d2ce3ef722e6d Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Tue, 8 Jul 2025 20:12:16 -0300 Subject: [PATCH] fix: Improve modal layout responsiveness and overflow handling (#8936) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ (switch-case-size.ts): Update modal sizes for better user experience and consistency ✨ (index.tsx, TemplateGetStartedCardComponent): Adjust styles for better layout and responsiveness ✨ (index.tsx): Improve modal layout and scrolling behavior for better usability --- src/frontend/src/modals/baseModal/helpers/switch-case-size.ts | 2 +- .../templatesModal/components/GetStartedComponent/index.tsx | 2 +- .../components/TemplateGetStartedCardComponent/index.tsx | 2 +- src/frontend/src/modals/templatesModal/index.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/modals/baseModal/helpers/switch-case-size.ts b/src/frontend/src/modals/baseModal/helpers/switch-case-size.ts index bd2eb9e6e..25893898e 100644 --- a/src/frontend/src/modals/baseModal/helpers/switch-case-size.ts +++ b/src/frontend/src/modals/baseModal/helpers/switch-case-size.ts @@ -57,7 +57,7 @@ export const switchCaseModalSize = (size: string) => { case "templates": minWidth = "w-[97vw] max-w-[1200px]"; height = - "min-h-[700px] lg:min-h-0 h-[90vh] md:h-[80vh] lg:h-[50vw] lg:max-h-[620px]"; + "min-h-[500px] h-[90vh] md:h-[85vh] lg:h-[80vh] xl:h-[70vh] max-h-[90vh]"; break; case "three-cards": minWidth = "min-w-[1066px]"; diff --git a/src/frontend/src/modals/templatesModal/components/GetStartedComponent/index.tsx b/src/frontend/src/modals/templatesModal/components/GetStartedComponent/index.tsx index 8ac728470..65314df70 100644 --- a/src/frontend/src/modals/templatesModal/components/GetStartedComponent/index.tsx +++ b/src/frontend/src/modals/templatesModal/components/GetStartedComponent/index.tsx @@ -43,7 +43,7 @@ export default function GetStartedComponent() { Get started -
+
{cardData.map((card, index) => ( ))} diff --git a/src/frontend/src/modals/templatesModal/components/TemplateGetStartedCardComponent/index.tsx b/src/frontend/src/modals/templatesModal/components/TemplateGetStartedCardComponent/index.tsx index 1bd07f928..597a67a05 100644 --- a/src/frontend/src/modals/templatesModal/components/TemplateGetStartedCardComponent/index.tsx +++ b/src/frontend/src/modals/templatesModal/components/TemplateGetStartedCardComponent/index.tsx @@ -42,7 +42,7 @@ export default function TemplateGetStartedCardComponent({ return flow ? (
- +