From c1e862e6bd06e22e329d6021a5771d331d0484df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 24 Nov 2023 22:02:13 +0100 Subject: [PATCH] Fixed ScaffoldAuth layout on mobile --- front/components/UI/ScaffoldAuth.tsx | 52 +++++++++++++++++++--------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/front/components/UI/ScaffoldAuth.tsx b/front/components/UI/ScaffoldAuth.tsx index 279d331..acd6153 100644 --- a/front/components/UI/ScaffoldAuth.tsx +++ b/front/components/UI/ScaffoldAuth.tsx @@ -56,22 +56,27 @@ const ScaffoldAuth: FunctionComponent = ({ const [banner] = useAssets(require('../../assets/banner.jpg')); return ( - - + /> */} {layout.width > 650 && ( ChromaCase @@ -99,17 +104,32 @@ const ScaffoldAuth: FunctionComponent = ({ contentContainerStyle={{ padding: 16, flexGrow: 1, + width: '100%', justifyContent: 'center', alignSelf: 'center', + alignItems: 'center', }} > - - + {title} @@ -117,7 +137,7 @@ const ScaffoldAuth: FunctionComponent = ({ {description} - + = ({ }} /> )} - + ); };