Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9b55f8

Browse files
committed
Move the profile picture to the top in Settings page for smaller screens
1 parent 6a0e7f1 commit a9b55f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/settings/ProfileSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export default function ProfileSettings() {
9393
</div>
9494

9595
<div className="grid grid-cols-4 gap-6">
96-
<div className="col-span-4 grid grid-cols-4">
97-
<div className="flex col-span-3 flex-col gap-6 max-w-lg">
96+
<div className="col-span-4 flex flex-col-reverse md:grid md:grid-cols-4">
97+
<div className="flex md:col-span-3 flex-col gap-6 max-w-lg">
9898
<Input
9999
label="Username"
100100
type="text"
@@ -136,7 +136,7 @@ export default function ProfileSettings() {
136136
errorMessage="This field is required"
137137
/>
138138
</div>
139-
<div className="col-span-1 grid place-items-center">
139+
<div className="md:col-span-1 grid place-items-center">
140140
{image && <Avatar src={image} className="w-32 h-32" />}
141141
</div>
142142
</div>

0 commit comments

Comments
 (0)