Merge pull request #7 from Car-Part-Planet/style/image-contain

style: small change to make images contain
This commit is contained in:
jrphilo 2024-07-08 07:36:47 +02:00 committed by GitHub
commit 0603921d25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"