Skip to content

Commit

Permalink
Add object-fit class to thumbnail images
Browse files Browse the repository at this point in the history
  • Loading branch information
BraydenTW committed Jan 12, 2022
1 parent 7a0f1a6 commit a951ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/utils/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const Item = ({
src={meta.og && image()}
alt=""
width="270"
className="rounded-md w-full h-[150px] scale-on-hover duration-500"
className="rounded-md w-full h-[150px] object-cover scale-on-hover duration-500"
/>
</a>
</Link>
Expand Down Expand Up @@ -345,7 +345,7 @@ const Item = ({
src={meta.og && image()}
alt=""
width="300"
className="rounded-md w-full mb-2 h-[157.5px] scale-on-hover duration-500"
className="rounded-md w-full mb-2 h-[157.5px] object-cover scale-on-hover duration-500"
/>
</a>
</Link>
Expand Down

0 comments on commit a951ee5

Please sign in to comment.