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.

Make the Programs grid footer sticky like the table footer

Rafib977dda3823d
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/page-client.tsx
index 47e1b9edde..2963bcd2a7 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/page-client.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/page-client.tsx
@@ -235,14 +235,14 @@ function ProgramsGrid({
),
)}
</div>
- {/* like the table footer, but only when the tab has more than one page */}
+ {/* sticky like the table footer, but only when the tab has more than one page */}
{count !== undefined && count > pagination.pageSize && (
<PaginationControls
pagination={pagination}
setPagination={setPagination}
totalCount={count}
unit={(plural) => `${tab.resourceName}${plural ? "s" : ""}`}
- className="border-border-subtle border-t px-4 py-3.5"
+ className="border-border-subtle bg-bg-default sticky bottom-0 z-10 rounded-b-[inherit] border-t px-4 py-3.5"
/>
)}
</>