diff options
author | 2024-07-08 15:47:03 +0200 | |
---|---|---|
committer | 2024-07-08 15:47:03 +0200 | |
commit | d70f4e166dd9ce2f11a6ac2d7a2e500515657041 (patch) | |
tree | 256f2a4423742a41adceb00dbec0cd56c568e908 /web/source/settings/components/profile.tsx | |
parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.72 to 7.0.73 (#3083) (diff) | |
download | gotosocial-d70f4e166dd9ce2f11a6ac2d7a2e500515657041.tar.xz |
[feature/frontend] Allow setting alt-text for avatar + header (#3086)
Diffstat (limited to 'web/source/settings/components/profile.tsx')
-rw-r--r-- | web/source/settings/components/profile.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/source/settings/components/profile.tsx b/web/source/settings/components/profile.tsx index 4a5157378..24cb3c4c2 100644 --- a/web/source/settings/components/profile.tsx +++ b/web/source/settings/components/profile.tsx @@ -27,9 +27,11 @@ export default function FakeProfile({ avatar, header, display_name, username, ro <img src={header} alt={header ? `header image for ${username}` : "None set"} /> </div> <div className="basic-info" aria-hidden="true"> - <a className="avatar" href={avatar}> - <img src={avatar} alt={avatar ? `avatar image for ${username}` : "None set"} /> - </a> + <div className="avatar-image-wrapper"> + <a href={avatar}> + <img className="avatar" src={avatar} alt={avatar ? `avatar image for ${username}` : "None set"} /> + </a> + </div> <dl className="namerole"> <dt className="sr-only">Display name</dt> <dd className="displayname text-cutoff">{display_name.trim().length > 0 ? display_name : username}</dd> |