From 70e98316e294f407200694f43ae49771a03a94e2 Mon Sep 17 00:00:00 2001 From: shiva raj badu Date: Sat, 12 Jul 2025 22:49:43 +0545 Subject: [PATCH] fix(layouts): add mx-auto for export alignment --- .../components/slide_layouts/Type1Layout.tsx | 2 +- .../components/slide_layouts/Type2Layout.tsx | 12 ++++++------ .../components/slide_layouts/Type4Layout.tsx | 2 +- .../components/slide_layouts/Type5Layout.tsx | 7 +++---- .../components/slide_layouts/Type6Layout.tsx | 2 +- .../components/slide_layouts/Type7Layout.tsx | 2 +- .../components/slide_layouts/Type8Layout.tsx | 2 +- .../components/slide_layouts/Type9Layout.tsx | 2 +- .../pdf-maker/PdfMakerPage.tsx | 2 +- 9 files changed, 16 insertions(+), 17 deletions(-) diff --git a/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type1Layout.tsx b/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type1Layout.tsx index 82ab12a9..9570dbe5 100644 --- a/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type1Layout.tsx +++ b/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type1Layout.tsx @@ -26,7 +26,7 @@ const Type1Layout = ({ const { currentColors } = useSelector((state: RootState) => state.theme); return (
@@ -277,9 +277,9 @@ const Type2Layout = ({ boxShadow: design_index === 2 ? "0 2px 10px 0 rgba(43, 43, 43, 0.2)" : "", }} - className={`w-full relative ${design_index === 2 - ? "slide-box shadow-lg rounded-lg p-3 lg:p-6" - : "" + className={`w-full relative ${design_index === 2 + ? "slide-box shadow-lg rounded-lg p-3 lg:p-6" + : "" }`} > @@ -327,7 +327,7 @@ const Type2Layout = ({ return (
diff --git a/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type6Layout.tsx b/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type6Layout.tsx index babc0ba4..c5f6dc01 100644 --- a/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type6Layout.tsx +++ b/servers/nextjs/app/(presentation-generator)/components/slide_layouts/Type6Layout.tsx @@ -44,7 +44,7 @@ const Type6Layout = ({ }; return (
{ presentationData.slides && presentationData.slides.length > 0 && presentationData.slides.map((slide, index) => ( -
+
{renderSlideContent(slide, language)}