Fixed ScaffoldAuth layout on mobile
This commit is contained in:
@@ -56,22 +56,27 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
|||||||
const [banner] = useAssets(require('../../assets/banner.jpg'));
|
const [banner] = useAssets(require('../../assets/banner.jpg'));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<View
|
||||||
direction="row"
|
style={{
|
||||||
justifyContent="space-between"
|
backgroundColor: '#cdd4fd',
|
||||||
style={{ flex: 1, backgroundColor: '#cdd4fd' }}
|
display: 'flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Column style={{ flex: 1 }}>
|
<Column style={{ flex: 1 }}>
|
||||||
<Wrap space={4} direction="row" style={{ padding: 16, paddingBottom: 0 }}>
|
<Wrap space={4} direction="row" style={{ padding: 16, paddingBottom: 0 }}>
|
||||||
<Row space={2} flex={1}>
|
<Row space={2} flex={1}>
|
||||||
<Image
|
{/* <Image
|
||||||
// source={{ uri: logo }}
|
source={{ uri: logo }}
|
||||||
style={{
|
style={{
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
width: 32,
|
width: 32,
|
||||||
height: 32,
|
height: 32,
|
||||||
}}
|
}}
|
||||||
/>
|
/> */}
|
||||||
{layout.width > 650 && (
|
{layout.width > 650 && (
|
||||||
<Text fontSize={'xl'} selectable={false}>
|
<Text fontSize={'xl'} selectable={false}>
|
||||||
ChromaCase
|
ChromaCase
|
||||||
@@ -99,17 +104,32 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
|||||||
contentContainerStyle={{
|
contentContainerStyle={{
|
||||||
padding: 16,
|
padding: 16,
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
|
width: '100%',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<View style={{ width: '100%', maxWidth: 420 }}>
|
<View
|
||||||
<Stack
|
style={{
|
||||||
space={8}
|
display: 'flex',
|
||||||
justifyContent="center"
|
flexDirection: 'column',
|
||||||
alignContent="center"
|
justifyContent: 'space-between',
|
||||||
alignItems="center"
|
alignItems: 'center',
|
||||||
style={{ width: '100%', paddingBottom: 40 }}
|
width: '100%',
|
||||||
|
maxWidth: 420,
|
||||||
|
gap: 40,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
width: '100%',
|
||||||
|
gap: 8,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Text fontSize="4xl" textAlign="center">
|
<Text fontSize="4xl" textAlign="center">
|
||||||
{title}
|
{title}
|
||||||
@@ -117,7 +137,7 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
|||||||
<Text fontSize="lg" textAlign="center">
|
<Text fontSize="lg" textAlign="center">
|
||||||
{description}
|
{description}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</View>
|
||||||
<Stack
|
<Stack
|
||||||
space={5}
|
space={5}
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
@@ -171,7 +191,7 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user