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.

Add image size

Tim Wilsona7f54bf38895
diff --git a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/header.tsx b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/header.tsx
index 88f2193b49..ff39d04167 100644
--- a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/header.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/header.tsx
@@ -26,7 +26,7 @@ export function Header({
return (
<header
className={
- "sticky top-0 mx-px flex items-center justify-between bg-white/90 px-6 py-4 backdrop-blur-sm"
+ "sticky top-0 z-10 mx-px flex items-center justify-between bg-white/90 px-6 py-4 backdrop-blur-sm"
}
>
{/* Bottom border when scrolled */}
diff --git a/apps/web/lib/zod/schemas/programs.ts b/apps/web/lib/zod/schemas/programs.ts
index 50f41d9126..2fcb1f0255 100644
--- a/apps/web/lib/zod/schemas/programs.ts
+++ b/apps/web/lib/zod/schemas/programs.ts
@@ -19,6 +19,8 @@ export const programLanderImageBlockSchema = z.object({
data: z.object({
url: z.string().url(),
alt: z.string().optional(),
+ width: z.number().optional(),
+ height: z.number().optional(),
}),
});
diff --git a/apps/web/ui/partners/lander-blocks/ImageBlock.tsx b/apps/web/ui/partners/lander-blocks/ImageBlock.tsx
index 980190596a..31da17c002 100644
--- a/apps/web/ui/partners/lander-blocks/ImageBlock.tsx
+++ b/apps/web/ui/partners/lander-blocks/ImageBlock.tsx
@@ -11,6 +11,8 @@ export function ImageBlock({
<img
src={block.data.url}
alt={block.data.alt}
+ width={block.data.width}
+ height={block.data.height}
className="block rounded-lg"
/>
</div>