Skip to content

Commit ed8da43

Browse files
committed
fix: Adjust config user page for mobile
1 parent 6d0b1a8 commit ed8da43

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed
Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
<form
22
[formGroup]="form"
33
(ngSubmit)="update()"
4-
class="flex flex-col items-center justify-center p-8"
4+
class="flex flex-col items-center p-4 md:p-8 w-full"
55
>
6-
<p-card header="Dados pessoais">
7-
<div class="flex flex-col gap-2">
8-
<div class="flex flex-row gap-2">
9-
<div class="flex flex-col">
6+
<p-card header="Dados pessoais" class="w-full max-w-xl">
7+
<div class="flex flex-col gap-4">
8+
<div class="flex flex-col md:flex-row gap-4">
9+
<div class="flex flex-col w-full">
1010
<label for="firstName">First name</label>
1111
<input
1212
pInputText
1313
pSize="small"
1414
id="firstName"
1515
formControlName="firstName"
16+
class="w-full"
1617
/>
1718
</div>
18-
<div class="flex flex-col">
19-
<label for="firstName">Last name</label>
19+
20+
<div class="flex flex-col w-full">
21+
<label for="lastName">Last name</label>
2022
<input
2123
pInputText
2224
pSize="small"
2325
[disabled]="true"
2426
id="lastName"
2527
formControlName="lastName"
28+
class="w-full"
2629
/>
2730
</div>
2831
</div>
@@ -35,11 +38,12 @@
3538
[disabled]="true"
3639
id="email"
3740
formControlName="email"
41+
class="w-full"
3842
/>
3943
</div>
4044

41-
<div class="flex flex-row gap-2">
42-
<div class="flex flex-col">
45+
<div class="flex flex-col md:flex-row gap-4">
46+
<div class="flex flex-col w-full">
4347
<label for="password">Password</label>
4448
<input
4549
pInputText
@@ -48,16 +52,18 @@
4852
id="password"
4953
type="password"
5054
value="******"
55+
class="w-full"
5156
/>
5257
</div>
5358

54-
<div class="flex flex-col">
55-
<label for="firstName">Phone number</label>
59+
<div class="flex flex-col w-full">
60+
<label for="phoneNumber">Phone number</label>
5661
<p-inputmask
5762
mask="+55 (99) 99999-9999"
5863
size="small"
5964
placeholder="+55 (99) 99999-9999"
6065
formControlName="phoneNumber"
66+
class="w-full"
6167
/>
6268
</div>
6369
</div>
@@ -69,12 +75,12 @@
6975
icon="pi pi-save"
7076
size="small"
7177
iconPos="left"
72-
[style]="{ width: '100%' }"
78+
class="w-full"
7379
type="submit"
7480
label="Salvar"
7581
/>
7682
</ng-template>
7783
</p-card>
7884
</form>
7985

80-
<p-toast position="bottom-right" key="toast"> </p-toast>
86+
<p-toast position="bottom-right" key="toast"></p-toast>

0 commit comments

Comments
 (0)