Skip to content

Commit 5e12087

Browse files
authored
fix:Resolve alignment issues in Profile Screen and alignment for dis… (#9)
* fix:Resolve alignment issues in Profile Screen and alignment for display of name * fix: Align profile name properly
1 parent 75f5048 commit 5e12087

File tree

1 file changed

+42
-26
lines changed

1 file changed

+42
-26
lines changed

audire/audire-mobile-app/src/modules/profile/ProfileView.tsx

+42-26
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,25 @@ const ProfileView = () => {
5151
</Avatar>
5252

5353
<Center>
54-
<Text fontWeight="bold" color="black" fontSize="$2xl">
55-
{firstName}
56-
</Text>
57-
<Text fontWeight="bold" color="black" fontSize="$2xl">
58-
{lastName}
54+
<Text
55+
fontWeight="bold"
56+
color="black"
57+
fontSize="$xl"
58+
numberOfLines={2}
59+
textAlign="center"
60+
>
61+
{firstName} {lastName}
5962
</Text>
6063
</Center>
6164
</Center>
6265

63-
<Center display="flex" flexDirection="column" gap="$3">
64-
<Box display="flex" flexDirection="row" gap="$3">
65-
<Text>First Name:</Text>
66+
<Center display="flex" flexDirection="column" gap="$4" px="$12">
67+
<Center display="flex" flexDirection="column" alignItems="flex-start">
68+
<Text fontWeight="bold" fontSize="$xs">
69+
First Name
70+
</Text>
6671
<Input
67-
w={200}
72+
w="$full"
6873
variant="outline"
6974
size="sm"
7075
isDisabled={false}
@@ -78,11 +83,13 @@ const ProfileView = () => {
7883
onChangeText={(text) => setNewFirstName(text)}
7984
/>
8085
</Input>
81-
</Box>
82-
<Box display="flex" flexDirection="row" gap="$3">
83-
<Text> Last Name:</Text>
86+
</Center>
87+
<Center display="flex" flexDirection="column" alignItems="flex-start">
88+
<Text fontWeight="bold" fontSize="$xs">
89+
Last Name
90+
</Text>
8491
<Input
85-
w={200}
92+
w="$full"
8693
variant="outline"
8794
size="sm"
8895
isDisabled={false}
@@ -96,11 +103,14 @@ const ProfileView = () => {
96103
placeholder={formattedLastName}
97104
/>
98105
</Input>
99-
</Box>
100-
<Box display="flex" flexDirection="row" gap="$9">
101-
<Text> Mobile:</Text>
106+
</Center>
107+
<Center display="flex" flexDirection="column" alignItems="flex-start">
108+
<Text fontWeight="bold" fontSize="$xs">
109+
{' '}
110+
Mobile
111+
</Text>
102112
<Input
103-
w={200}
113+
w="$full"
104114
variant="outline"
105115
size="sm"
106116
isDisabled={false}
@@ -109,12 +119,15 @@ const ProfileView = () => {
109119
>
110120
<InputField placeholder={formattedmobile} />
111121
</Input>
112-
</Box>
122+
</Center>
113123

114-
<Box display="flex" flexDirection="row" gap="$12">
115-
<Text> Email:</Text>
124+
<Center display="flex" flexDirection="column" alignItems="flex-start">
125+
<Text fontWeight="bold" fontSize="$xs">
126+
{' '}
127+
Email
128+
</Text>
116129
<Input
117-
w={200}
130+
w="$full"
118131
variant="outline"
119132
size="sm"
120133
isDisabled={false}
@@ -123,11 +136,14 @@ const ProfileView = () => {
123136
>
124137
<InputField lineHeight={22} />
125138
</Input>
126-
</Box>
127-
<Box display="flex" flexDirection="row" gap="$16">
128-
<Text> City:</Text>
139+
</Center>
140+
<Center display="flex" flexDirection="column" alignItems="flex-start">
141+
<Text fontWeight="bold" fontSize="$xs">
142+
{' '}
143+
City
144+
</Text>
129145
<Input
130-
w={200}
146+
w="$full"
131147
variant="outline"
132148
size="sm"
133149
isDisabled={false}
@@ -136,7 +152,7 @@ const ProfileView = () => {
136152
>
137153
<InputField lineHeight={22} />
138154
</Input>
139-
</Box>
155+
</Center>
140156
</Center>
141157
<TouchableOpacity>
142158
<Button

0 commit comments

Comments
 (0)