Skip to content

Commit

Permalink
fix: size stack icons to stop layout shift
Browse files Browse the repository at this point in the history
  • Loading branch information
cubedhuang committed Jul 22, 2022
1 parent dd48550 commit 6d42c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Projects() {
{stack.map(({ name, icon, src }) => (
<div
key={name}
className="relative group cursor-pointer flex justify-center"
className="w-6 h-6 md:w-10 md:h-10 rounded-[25%] bg-slate-900 relative group cursor-pointer flex justify-center"
>
<Image
key={name}
Expand All @@ -50,7 +50,7 @@ export default function Projects() {
width={120}
height={120}
alt={name}
className="w-6 h-6 md:w-10 md:h-10 rounded-[25%]"
className="w-full h-full rounded-[25%]"
quality={100}
/>
<div className="absolute mb-1 px-2 py-1 text-white text-sm bg-slate-900 opacity-0 group-hover:opacity-100 transition pointer-events-none bottom-full rounded-lg w-max">
Expand Down

1 comment on commit 6d42c5e

@vercel
Copy link

@vercel vercel bot commented on 6d42c5e Jul 22, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

danonl – ./

danonl-git-main-cubed.vercel.app
www.dan.onl
danonl-cubed.vercel.app
dannext.vercel.app
dan.onl

Please sign in to comment.