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.

more tweaks

Steven Tey5246dd833a36
diff --git a/apps/web/app/app.dub.co/embed/activity.tsx b/apps/web/app/app.dub.co/embed/activity.tsx
index 763c85534d..a6bba1f039 100644
--- a/apps/web/app/app.dub.co/embed/activity.tsx
+++ b/apps/web/app/app.dub.co/embed/activity.tsx
@@ -11,7 +11,7 @@ export function EmbedWidgetActivity({
sales: number;
}) {
return (
- <div className="col-span-2 grid h-full grid-cols-3 divide-x divide-neutral-200 rounded-lg border border-neutral-200 bg-white">
+ <div className="grid h-full grid-cols-3 divide-x divide-neutral-200 rounded-lg border border-neutral-200 bg-white sm:col-span-2">
{[
{
label: "Clicks",
@@ -29,7 +29,10 @@ export function EmbedWidgetActivity({
description: "Total number of leads that converted to a paid account",
},
].map(({ label, value, description }) => (
- <div key={label} className="relative flex flex-col justify-between p-4">
+ <div
+ key={label}
+ className="relative flex flex-col justify-between gap-4 p-4"
+ >
<span className="flex items-center gap-1 text-sm text-neutral-500">
{label}
<InfoTooltip content={description} />
diff --git a/apps/web/app/app.dub.co/embed/inline/page-client.tsx b/apps/web/app/app.dub.co/embed/inline/page-client.tsx
index d8027d7b81..b79607cec2 100644
--- a/apps/web/app/app.dub.co/embed/inline/page-client.tsx
+++ b/apps/web/app/app.dub.co/embed/inline/page-client.tsx
@@ -82,7 +82,7 @@ export function EmbedInlinePageClient({
/>
</div>
</div>
- <div className="mt-4 grid h-32 grid-cols-3 gap-2">
+ <div className="mt-4 grid gap-2 sm:h-32 sm:grid-cols-3">
<EmbedWidgetActivity
clicks={link.clicks}
leads={link.leads}
diff --git a/apps/web/app/app.dub.co/embed/payouts.tsx b/apps/web/app/app.dub.co/embed/payouts.tsx
index 0eb1c2d94a..87c18ac435 100644
--- a/apps/web/app/app.dub.co/embed/payouts.tsx
+++ b/apps/web/app/app.dub.co/embed/payouts.tsx
@@ -3,7 +3,7 @@ import { currencyFormatter } from "@dub/utils";
export function EmbedWidgetPayouts() {
return (
- <div className="flex flex-col justify-between rounded-lg border border-neutral-200 bg-white p-4">
+ <div className="flex flex-col justify-between gap-4 rounded-lg border border-neutral-200 bg-white p-4">
<div className="flex items-center gap-1">
<p className="text-sm text-neutral-500">Payouts</p>
<InfoTooltip content="Payouts are processed at the start of each month. Your earnings are automatically transferred to your bank account." />
diff --git a/apps/web/app/app.dub.co/embed/sales.tsx b/apps/web/app/app.dub.co/embed/sales.tsx
index 02386aceaa..ac58748b77 100644
--- a/apps/web/app/app.dub.co/embed/sales.tsx
+++ b/apps/web/app/app.dub.co/embed/sales.tsx
@@ -76,7 +76,7 @@ export function EmbedWidgetSales({ salesCount }: { salesCount: number }) {
{...tableProps}
table={table}
containerClassName="rounded-md border border-neutral-200 my-4"
- scrollWrapperClassName="min-h-fit"
+ scrollWrapperClassName="min-h-[14.05rem]"
/>
);
}