Skip to content

Commit

Permalink
fix: avatar resolution (#383)
Browse files Browse the repository at this point in the history
This will bring the "Best Practices" score from 92 to 100. #268 

<img width="753" alt="Screenshot 2023-07-19 at 21 01 16"
src="https://github.com/denoland/saaskit/assets/8139585/aee1d398-3409-46da-a093-154af17ceb2a">
  • Loading branch information
brunocorrea23 authored Jul 20, 2023
1 parent 4574cb8 commit c1a2e72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/UserPostedAt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default function UserPostedAt(
return (
<p class="text-gray-500">
<img
// Resize the avatar image to be 24x24 px
src={props.user.avatarUrl + "&s=24"}
// Resize the avatar image to be 36x36 px
// Although display size is 24x24, lighthouse complains about low resolution if the image is 24x24
src={props.user.avatarUrl + "&s=36"}
alt={props.user.login}
crossOrigin="anonymous"
class="h-6 w-auto rounded-full inline-block mr-2"
Expand Down

0 comments on commit c1a2e72

Please sign in to comment.