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.

ui improvements

Pedro Ladeira5208749c52b8
diff --git a/apps/web/ui/program-marketplace/program-card.tsx b/apps/web/ui/program-marketplace/program-card.tsx
index d46aed651f..718302a1b1 100644
--- a/apps/web/ui/program-marketplace/program-card.tsx
+++ b/apps/web/ui/program-marketplace/program-card.tsx
@@ -27,7 +27,7 @@ export function MarketplaceProgramCard({
<Link
href={`/marketplace/${program.slug}`}
className={cn(
- "border-border-subtle hover:drop-shadow-card-hover flex h-full flex-col rounded-xl border bg-white p-4 transition-[filter] sm:p-6",
+ "border-border-subtle hover:drop-shadow-card-hover flex h-full min-w-0 flex-col overflow-hidden rounded-xl border bg-white p-4 transition-[filter] sm:p-6",
className,
)}
>
@@ -41,7 +41,7 @@ export function MarketplaceProgramCard({
{!externalMarketplace ? <ProgramStatusBadge program={program} /> : null}
</div>
- <div className="mt-6 flex flex-col sm:mt-8">
+ <div className="mt-6 flex min-w-0 flex-col sm:mt-8">
<h3 className="text-content-emphasis text-base font-semibold">
{program.name}
</h3>
@@ -52,7 +52,7 @@ export function MarketplaceProgramCard({
</div>
{rewards?.length ? (
- <div className="mt-5 min-w-0">
+ <div className="mt-5 w-full min-w-0">
<MarketplaceRewardsLabel
count={rewards.length}
className="text-content-muted text-xs font-medium"
diff --git a/apps/web/ui/program-marketplace/program-rewards-display.tsx b/apps/web/ui/program-marketplace/program-rewards-display.tsx
index d334d567be..c857b85d96 100644
--- a/apps/web/ui/program-marketplace/program-rewards-display.tsx
+++ b/apps/web/ui/program-marketplace/program-rewards-display.tsx
@@ -86,7 +86,7 @@ export function ProgramRewardsDisplay({
items[0];
return (
- <div className={cn("-ml-1 min-w-0", className)}>
+ <div className={cn("w-full min-w-0", className)}>
<RewardExpandedItem
item={featuredItem}
isDarkImage={isDarkImage}
@@ -118,7 +118,7 @@ function RewardExpandedItem({
},
})}
className={cn(
- "flex min-w-0 items-center gap-1 pr-1",
+ "flex min-w-0 max-w-full items-center gap-1 overflow-hidden pr-1",
item.onClick &&
"hover:bg-bg-subtle active:bg-bg-emphasis rounded-md transition-colors",
)}
@@ -133,7 +133,7 @@ function RewardExpandedItem({
</div>
<span
className={cn(
- "min-w-0 truncate text-sm font-normal leading-5 tracking-[-0.02em] text-black",
+ "min-w-0 max-w-full truncate text-sm font-normal leading-5 tracking-[-0.02em] text-black",
isDarkImage && "text-content-inverted",
descriptionClassName,
)}