From a951ee5191b1abdbe7c442f21c1f0241560eeab3 Mon Sep 17 00:00:00 2001 From: Brayden Date: Wed, 12 Jan 2022 13:26:56 -0600 Subject: [PATCH] Add object-fit class to thumbnail images --- components/utils/Item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/utils/Item.js b/components/utils/Item.js index 95501f4..29d1bc5 100644 --- a/components/utils/Item.js +++ b/components/utils/Item.js @@ -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" /> @@ -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" />