Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit 0ae8731

Browse files
authored
Merge pull request #48 from renderghost/fix/issue-47-profile-header-layout
Fix #47: Stack profile name and handle below avatar
2 parents 68908cb + 5615b1c commit 0ae8731

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

‎src/components/profile/ProfileView.tsx‎

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default function ProfileView({
106106

107107
<CardContent className="pb-6">
108108
{/* Avatar and Basic Info */}
109-
<div className="flex items-start gap-4 mb-4">
109+
<div className="flex flex-col gap-3 mb-4">
110110
<div className={profile.banner ? '-mt-12' : 'pt-6'}>
111111
<Avatar className="h-24 w-24 border-4 border-background">
112112
<AvatarImage src={profile.avatar} alt={getDisplayName()} />
@@ -115,25 +115,23 @@ export default function ProfileView({
115115
</AvatarFallback>
116116
</Avatar>
117117
</div>
118-
<div
119-
className={`flex-1 min-w-0 ${profile.banner ? 'pt-4' : 'pt-6'}`}
120-
>
121-
<h1 className="text-2xl font-bold truncate">
118+
<div className="space-y-1">
119+
<h1 className="text-2xl font-bold leading-tight">
122120
{getDisplayName()}
123121
</h1>
124122
<a
125123
href={`https://bsky.app/profile/${profile.handle}`}
126124
target="_blank"
127125
rel="noopener noreferrer"
128-
className="text-muted-foreground hover:text-primary hover:underline"
126+
className="block text-muted-foreground hover:text-primary hover:underline leading-normal"
129127
>
130128
@{profile.handle}
131129
</a>
132130
{profile.location &&
133131
(profile.location.city || profile.location.country) && (
134-
<div className="flex items-center gap-1 text-sm text-foreground mb-4">
132+
<div className="flex items-center gap-1 text-sm text-foreground">
135133
<MapPin className="h-4 w-4" />
136-
<span>
134+
<span className="leading-normal">
137135
{profile.location.city && `${profile.location.city}, `}
138136
{profile.location.country}
139137
</span>
@@ -142,18 +140,6 @@ export default function ProfileView({
142140
</div>
143141
</div>
144142

145-
{/* Location */}
146-
{profile.location &&
147-
(profile.location.city || profile.location.country) && (
148-
<div className="flex items-center gap-1 text-sm text-foreground mb-4">
149-
<MapPin className="h-4 w-4" />
150-
<span>
151-
{profile.location.city && `${profile.location.city}, `}
152-
{profile.location.country}
153-
</span>
154-
</div>
155-
)}
156-
157143
{/* Description */}
158144
{profile.description && (
159145
<p className="text-foreground mb-4 whitespace-pre-wrap">

0 commit comments

Comments
 (0)