codehouse icon indicating copy to clipboard operation
codehouse copied to clipboard

Add object-fit class to thumbnail images

Open BraydenTW opened this issue 3 years ago • 2 comments

Hey Savio,

Neat app! I noticed that the thumbnails for the cheat sheet items were stretched:

26CB151A-1CC9-4E0F-B09A-660832EC7CA0

This can be solved using the same <img> element by adding the Tailwind class: object-cover. It will apply this CSS rule to it: object-fit: cover; (it functions like background-size: cover; on a <div> element).

BraydenTW avatar Jan 12 '22 19:01 BraydenTW

👷 Deploy request for codehouse-app pending review. Visit the deploys page to approve it

🔨 Explore the source changes: a951ee5191b1abdbe7c442f21c1f0241560eeab3

netlify[bot] avatar Jan 12 '22 19:01 netlify[bot]

Someone is attempting to deploy a commit to a Personal Account owned by @saviomartin on Vercel.

@saviomartin first needs to authorize it.

vercel[bot] avatar Jan 12 '22 19:01 vercel[bot]