Skip to content

Commit

Permalink
fix: dev card back and front no longer overlap when flipped on Safari…
Browse files Browse the repository at this point in the history
… and Firefox
  • Loading branch information
nickytonline committed Aug 12, 2024
1 parent 7236be5 commit b8de6e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/molecules/DevCard/dev-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Tilt from "react-parallax-tilt";
import { FiGlobe } from "react-icons/fi";
import { PiCrownSimpleFill } from "react-icons/pi";
import { HiArrowNarrowRight, HiTrendingDown, HiTrendingUp } from "react-icons/hi";
import clsx from "clsx";
import Button from "components/shared/Button/button";
import openSaucedImg from "img/openSauced-icon.png";
import { getRelativeDays } from "lib/utils/date-utils";
Expand Down Expand Up @@ -102,7 +103,12 @@ export default function DevCard(props: DevCardProps) {
height={348}
/>

<div className="z-10 flex flex-col gap-2 items-center justify-center w-full h-full text-white">
<div
className={clsx(
"z-10 flex flex-col gap-2 items-center justify-center w-full h-full text-white",
isFlipped && "invisible"
)}
>
{/** Avatar + @Username **/}
<div className="flex flex-col items-center gap-1">
<Image
Expand Down

0 comments on commit b8de6e0

Please sign in to comment.