Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update card-selector.tsx

Kiran K01e01f38d9bc
diff --git a/packages/ui/src/card-selector.tsx b/packages/ui/src/card-selector.tsx
index ccd9fbee2b..1d0c679e9e 100644
--- a/packages/ui/src/card-selector.tsx
+++ b/packages/ui/src/card-selector.tsx
@@ -48,12 +48,12 @@ export function CardSelector({
<label
key={key}
className={cn(
- "relative flex w-full cursor-pointer items-start gap-3 rounded-md border border-neutral-200 bg-white p-3 text-neutral-600 hover:bg-neutral-50",
+ "relative flex w-full cursor-pointer items-start gap-0.5 rounded-md border border-neutral-200 bg-white p-3 text-neutral-600 hover:bg-neutral-50",
"transition-all duration-150",
isSelected &&
"border-black bg-neutral-50 text-neutral-900 ring-1 ring-black",
disabled && "cursor-not-allowed opacity-50",
- className
+ className,
)}
>
<input
@@ -69,22 +69,16 @@ export function CardSelector({
}
}}
/>
-
- {icon && (
- <div className="flex-shrink-0 pt-0.5">
- {icon}
- </div>
- )}
-
+
+ {icon && <div className="flex-shrink-0 pt-0.5">{icon}</div>}
+
<div className="flex grow flex-col">
<span className="text-sm font-semibold text-neutral-900">
{label}
</span>
- <span className="text-xs text-neutral-600">
- {description}
- </span>
+ <span className="text-xs text-neutral-600">{description}</span>
</div>
-
+
<CircleCheckFill
className={cn(
"-mr-px -mt-px flex size-4 scale-75 items-center justify-center rounded-full opacity-0 transition-[transform,opacity] duration-150",