Skip to content

Commit 8eec379

Browse files
Consistent page layout and spacing (dubinc#3594)
Co-authored-by: Steven Tey <stevensteel97@gmail.com>
1 parent 7aa9f0d commit 8eec379

33 files changed

Lines changed: 98 additions & 92 deletions

File tree

apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-table.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export function PayoutTable() {
230230
payout={detailsSheetState.payout}
231231
/>
232232
)}
233-
<div className="flex flex-col gap-3">
233+
<div className="flex flex-col gap-4">
234234
<PartnerPayoutFilters />
235235
{payouts?.length !== 0 ? (
236236
<Table {...table} />
@@ -256,7 +256,7 @@ function PartnerPayoutFilters() {
256256
usePayoutFilters();
257257

258258
return (
259-
<div className="flex flex-col gap-3">
259+
<div className="flex flex-col">
260260
<Filter.Select
261261
className="w-full md:w-fit"
262262
filters={filters}
@@ -266,13 +266,15 @@ function PartnerPayoutFilters() {
266266
/>
267267
<AnimatedSizeContainer height>
268268
{activeFilters.length > 0 && (
269-
<Filter.List
270-
filters={filters}
271-
activeFilters={activeFilters}
272-
onSelect={onSelect}
273-
onRemove={onRemove}
274-
onRemoveAll={onRemoveAll}
275-
/>
269+
<div className="pt-3">
270+
<Filter.List
271+
filters={filters}
272+
activeFilters={activeFilters}
273+
onSelect={onSelect}
274+
onRemove={onRemove}
275+
onRemoveAll={onRemoveAll}
276+
/>
277+
</div>
276278
)}
277279
</AnimatedSizeContainer>
278280
</div>

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page-client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function BountiesPageClient() {
4242

4343
return (
4444
<PageWidthWrapper className="pb-10">
45-
<div className="mb-6 grid grid-cols-2 gap-2">
45+
<div className="mb-4 grid grid-cols-2 gap-2">
4646
{tabs.map((tab) => {
4747
const isActive = activeTab === tab.id;
4848

@@ -74,7 +74,7 @@ export function BountiesPageClient() {
7474
</div>
7575

7676
{filteredBounties?.length !== 0 || isLoading ? (
77-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3">
77+
<div className="grid grid-cols-1 gap-5 md:grid-cols-2 xl:grid-cols-3">
7878
{filteredBounties?.length
7979
? filteredBounties?.map((bounty) => (
8080
<PartnerBountyCard

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/(index)/page-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function ProgramCustomersPageClient() {
269269
});
270270

271271
return (
272-
<div className="flex flex-col gap-3">
272+
<div className="flex flex-col gap-4">
273273
<div>
274274
<div className="flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
275275
<Filter.Select

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/earnings/earnings-composite-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function EarningsCompositeChart() {
116116
);
117117

118118
return (
119-
<div className="flex flex-col gap-6">
119+
<div className="flex flex-col gap-4">
120120
<EarningsTableControls />
121121
<div className="rounded-lg border border-neutral-200 p-6">
122122
<div className="flex w-full items-center justify-between">

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/earnings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { EarningsTablePartner } from "./earnings-table";
66
export default function ProgramEarning() {
77
return (
88
<PageContent title="Earnings">
9-
<PageWidthWrapper className="flex flex-col gap-6 pb-10">
9+
<PageWidthWrapper className="flex flex-col gap-5 pb-10">
1010
<EarningsCompositeChart />
1111
<EarningsTablePartner />
1212
</PageWidthWrapper>

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/page-client.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function ProgramLinksPageClient() {
8686
!showDetailedAnalytics || displayOption === "cards";
8787

8888
return (
89-
<div className="flex flex-col gap-5">
89+
<div className="flex flex-col gap-4">
9090
<PartnerLinkModal />
9191
<div className="flex items-center justify-between">
9292
<SimpleDateRangePicker
@@ -100,7 +100,9 @@ export function ProgramLinksPageClient() {
100100
<div className="flex items-center gap-3">
101101
{!!showDetailedAnalytics && (
102102
<ToggleGroup
103-
className="rounded-lg"
103+
className="h-10 rounded-lg px-1"
104+
optionClassName="px-2 rounded-md"
105+
indicatorClassName="border-0 ring-1 ring-inset ring-neutral-200"
104106
options={[
105107
{
106108
value: "full",

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/page-client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function ProgramPageClient() {
123123
>
124124
<div
125125
className={cn(
126-
"relative z-0 mb-4 flex flex-col overflow-hidden rounded-xl border border-neutral-200 p-4 sm:mb-8 md:p-6",
126+
"relative z-0 mb-4 flex flex-col overflow-hidden rounded-xl border border-neutral-200 p-4 sm:mb-5 md:p-6",
127127
isDeactivated && "opacity-80",
128128
)}
129129
>
@@ -247,7 +247,7 @@ export default function ProgramPageClient() {
247247
}}
248248
>
249249
<ChartTooltipSync>
250-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-3">
250+
<div className="grid grid-cols-1 gap-5 lg:grid-cols-3">
251251
<div className="group rounded-xl border border-neutral-200 p-5 pb-3 pt-4 lg:col-span-2">
252252
<EarningsChart />
253253
</div>
@@ -270,7 +270,7 @@ export default function ProgramPageClient() {
270270
</NumberFlowGroup>
271271
</div>
272272
</ChartTooltipSync>
273-
<div className="mt-6">
273+
<div className="mt-5">
274274
<div className="flex items-center justify-between">
275275
<h2 className="text-base font-semibold text-neutral-900">
276276
Recent earnings

apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function ProgramMarketplacePageClient() {
4848
} = useProgramNetworkFilters();
4949

5050
return (
51-
<div className="flex flex-col gap-6">
51+
<div className="flex flex-col gap-4">
5252
<FeaturedPrograms />
5353
<div>
5454
<div className="xs:flex-row xs:items-center flex flex-col justify-between gap-4">

apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/analytics/page-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function ProgramAnalyticsPageClient() {
107107
);
108108

109109
return (
110-
<div className="flex flex-col gap-3 pb-12">
110+
<div className="flex flex-col gap-4 pb-12">
111111
<div>
112112
<div className="flex w-full flex-col items-center justify-between gap-2 md:flex-row">
113113
<div className="flex w-full flex-col items-center gap-2 min-[550px]:flex-row">

apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function ProgramCommissions() {
2525
>
2626
<PageWidthWrapper>
2727
<CommissionsStats />
28-
<div className="mt-6">
28+
<div className="mt-4">
2929
<CommissionsTable />
3030
</div>
3131
</PageWidthWrapper>

0 commit comments

Comments
 (0)