fix(frontend): truncate long handles in remote user profile and card
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m8s
test / unit (pull_request) Failing after 10m43s
test / integration (pull_request) Failing after 16m52s
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m8s
test / unit (pull_request) Failing after 10m43s
test / integration (pull_request) Failing after 16m52s
This commit is contained in:
@@ -42,9 +42,9 @@ export function RemoteUserCard({ actor }: RemoteUserCardProps) {
|
|||||||
className="flex items-center gap-3 hover:opacity-80"
|
className="flex items-center gap-3 hover:opacity-80"
|
||||||
>
|
>
|
||||||
<UserAvatar src={actor.avatarUrl} alt={actor.displayName ?? actor.handle} />
|
<UserAvatar src={actor.avatarUrl} alt={actor.displayName ?? actor.handle} />
|
||||||
<div>
|
<div className="min-w-0">
|
||||||
<p className="font-medium">{actor.displayName ?? actor.handle}</p>
|
<p className="font-medium truncate">{actor.displayName ?? actor.handle}</p>
|
||||||
<p className="text-sm text-muted-foreground">{actor.handle}</p>
|
<p className="text-sm text-muted-foreground truncate">{actor.handle}</p>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -100,11 +100,11 @@ export function RemoteUserProfile({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-4">
|
<div className="mt-4 min-w-0">
|
||||||
<h1 className="text-2xl font-bold">
|
<h1 className="text-2xl font-bold truncate">
|
||||||
{actor.displayName ?? actor.handle}
|
{actor.displayName ?? actor.handle}
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-sm text-muted-foreground">{actor.handle}</p>
|
<p className="text-sm text-muted-foreground truncate">{actor.handle}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{actor.bio && (
|
{actor.bio && (
|
||||||
|
|||||||
Reference in New Issue
Block a user