style: small change to make images contain

Signed-off-by: jrphilo <james.philo@me.com>
This commit is contained in:
jrphilo 2024-07-06 11:56:03 +02:00
parent 16673d9c53
commit a00783239c
No known key found for this signature in database
GPG Key ID: A8BAD7933F97046F

View File

@ -72,7 +72,7 @@ export function GridTileImage({
>
{props.src ? (
// eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
<Image className={clsx('h-full w-full object-cover object-center')} {...props} />
<Image className={clsx('h-full w-full object-contain object-center')} {...props} />
) : (
<div
className="flex h-full w-full items-center justify-center text-gray-400"
@ -157,7 +157,7 @@ export const TileImage = ({
>
{props.src ? (
// eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
<Image className={clsx('h-full w-full object-cover object-center')} {...props} />
<Image className={clsx('h-full w-full object-contain object-center')} {...props} />
) : (
<div
className="flex h-full w-full items-center justify-center text-gray-400"