Skip to content

Commit

Permalink
[dashboard] Keep Prebuild details legible by truncating avatar alt te…
Browse files Browse the repository at this point in the history
…xt when avatar can't be loaded
  • Loading branch information
jankeromnes authored and roboquat committed Mar 16, 2022
1 parent dd003b5 commit 4058da6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/dashboard/src/projects/Prebuilds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default function (props: { project?: Project; isAdminDashboard?: boolean
<p>
{p.info.changeAuthorAvatar && (
<img
className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2"
className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2 overflow-hidden"
src={p.info.changeAuthorAvatar || ""}
alt={p.info.changeAuthor}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/src/projects/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default function () {

const avatar = branch.changeAuthorAvatar && (
<img
className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2"
className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2 overflow-hidden"
src={branch.changeAuthorAvatar || ""}
alt={branch.changeAuthor}
/>
Expand Down

0 comments on commit 4058da6

Please sign in to comment.