Skip to content

Commit 2f31f14

Browse files
committed
fix: card styling and positioning
1 parent 395f365 commit 2f31f14

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import SocialListItem from "@/components/SocialListItem"
1111
import { ButtonLink } from "@/components/ui/buttons/Button"
1212
import Link from "@/components/ui/Link"
1313

14+
import { cn } from "@/lib/utils/cn"
15+
1416
import { FlagType, Product } from "./types"
1517

1618
const getIconFromName = (
@@ -50,7 +52,12 @@ const StakingBadge = ({
5052
const uiTypeColor = type === "ui"
5153
return (
5254
<span
53-
className={`rounded-full ${uiTypeColor ? "bg-success-light text-success dark:bg-warning-light dark:text-warning-dark" : "bg-primary-low-contrast"} px-2 py-1 text-xs normal-case ${uiTypeColor ? "text-success" : "text-primary-high-contrast"}`}
55+
className={cn(
56+
"rounded-full px-2 py-1 text-xs normal-case",
57+
uiTypeColor
58+
? "bg-success-light text-success dark:bg-success-dark dark:text-success-light"
59+
: "bg-primary-low-contrast text-primary-high-contrast"
60+
)}
5461
>
5562
{children}
5663
</span>
@@ -163,7 +170,7 @@ export const StakingProductCard = ({
163170
<div className="rounded-base hover:scale-101 flex flex-col bg-background-highlight transition-transform">
164171
<div className="flex max-h-24 space-x-3 p-6">
165172
{!!Svg && <Svg className="size-12" />}
166-
<div>
173+
<div className="flex flex-col justify-center">
167174
<h4 className="text-xl">{name}</h4>
168175
{typeof minEth !== "undefined" && (
169176
<p className="text-sm font-normal text-body-medium">

0 commit comments

Comments
 (0)