Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix console error about aspect ratio image #41

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Categories/CategoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const CategoryCard: FC<CategoryCardProps> = ({ image, name }) => {
return (
<Link href={"https://actualizatucarro.mercadoshops.com.co/"}>
<div className="flex flex-col items-center justify-center gap-x-4 relative group">
<Image src={image} width={150} height={150} alt={name} className="group-hover:scale-125 transition-all"/>
<Image src={image} width={150} height={150} alt={name} className="group-hover:scale-125 transition-all aspect-square" />
<span className="font-bold text-xs ms:text-sm md:text-lg ms:group-hover:text-xl transition-all">{name}</span>
<div className="absolute h-1 bg-primary-lm bottom-[-5px] transform scale-x-0 group-hover:scale-x-100 transition-transform duration-200 ease-in-out w-full rounded"></div>
</div>
Expand Down
Loading