Skip to content

Commit

Permalink
fix: fix tile size (#920)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Miszczyszyn <[email protected]>
  • Loading branch information
grzegorzpokorski and typeofweb authored Oct 10, 2023
1 parent da2b8bd commit 36cfbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/atoms/ProductImageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import NextImage, { type ImageProps } from "next/image";

export const ProductImageWrapper = (props: ImageProps) => {
return (
<div className="overflow-hidden rounded-md border">
<NextImage {...props} className="h-full w-full object-cover object-center p-2" />
<div className="aspect-square overflow-hidden rounded-md border">
<NextImage {...props} className="h-full w-full object-contain object-center p-2" />
</div>
);
};

1 comment on commit 36cfbdf

@vercel
Copy link

@vercel vercel bot commented on 36cfbdf Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.