mirror of
https://github.com/vercel/commerce.git
synced 2025-05-11 04:07:50 +00:00
style: small change to make images contain
Signed-off-by: jrphilo <james.philo@me.com>
This commit is contained in:
parent
16673d9c53
commit
a00783239c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user