The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(ui): expandable video preview image (#47964)
Francesco Sansalvadore13330e632812
diff --git a/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx b/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsxindex e9714c06a5e..799dce4e643 100644--- a/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx+++ b/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx@@ -261,45 +261,49 @@ export default function PartnerCatalogDetail({ partner, serializedListings }: Pr</div></SectionContainerWithCn><div className="absolute h-full w-full inset-0 z-20 pointer-events-none">- <SectionContainerWithCn- height="none"+ <divclassName={cn(- 'transition-all bg-background/90 -translate-y-3/4 dark:bg-background/95 backdrop-blur-xs border-b sticky top-16 z-20 flex justify-between items-center gap-4 py-2',+ 'transition-all border-b bg-background/90 -translate-y-3/4 dark:bg-background/95 backdrop-blur-xs sticky top-16 z-20',showStickyBar? 'opacity-100 pointer-events-auto translate-y-0': 'opacity-0 pointer-events-none')}>- <div className="flex items-center space-x-2">- <Image- width={56}- height={56}- className="hidden sm:block bg-white p-0.5 shrink-0 h-6 w-6 rounded-full border"- src={partner.logo}- alt={partner.title}- />- <div className="flex flex-col sm:flex-row sm:items-center sm:gap-1">- <span className="sm:text-lg truncate">{partner.title}</span>- {activeListing && (- <>- <span className="text-foreground-lighter text-sm hidden sm:inline">—</span>- <span className="text-foreground-lighter text-sm truncate">- {activeListing.label}- </span>- </>- )}+ <SectionContainerWithCn+ height="none"+ className="flex justify-between items-center gap-4 py-2"+ >+ <div className="flex items-center space-x-2">+ <Image+ width={56}+ height={56}+ className="hidden sm:block bg-white p-0.5 shrink-0 h-6 w-6 rounded-full border"+ src={partner.logo}+ alt={partner.title}+ />+ <div className="flex flex-col sm:flex-row sm:items-center sm:gap-1">+ <span className="sm:text-lg truncate">{partner.title}</span>+ {activeListing && (+ <>+ <span className="text-foreground-lighter text-sm hidden sm:inline">—</span>+ <span className="text-foreground-lighter text-sm truncate">+ {activeListing.label}+ </span>+ </>+ )}+ </div></div>- </div>- {installHref && (- <Button asChild>- <a href={installHref} target="_blank" rel="noreferrer">- {activeListing.publishedInMarketplace- ? 'Install integration'- : 'Add integration'}- </a>- </Button>- )}- </SectionContainerWithCn>+ {installHref && (+ <Button asChild>+ <a href={installHref} target="_blank" rel="noreferrer">+ {activeListing.publishedInMarketplace+ ? 'Install integration'+ : 'Add integration'}+ </a>+ </Button>+ )}+ </SectionContainerWithCn>+ </div></div></div>@@ -331,6 +335,7 @@ function PartnerDetails({{activeListing.youtubeId && (<ExpandableVideovideoId={activeListing.youtubeId}+ imgUrl={`https://img.youtube.com/vi/${activeListing.youtubeId}/0.jpg`}imgOverlayText="Watch an introductory video"triggerContainerClassName="w-full"/>diff --git a/apps/www/lib/remotePatterns.js b/apps/www/lib/remotePatterns.jsindex d8eaa931cd8..5f4b927addd 100644--- a/apps/www/lib/remotePatterns.js+++ b/apps/www/lib/remotePatterns.js@@ -45,7 +45,7 @@ module.exports = [protocol: 'https',hostname: 'img.youtube.com',port: '',- pathname: '/vi/*',+ pathname: '/vi/**',},{protocol: 'https',diff --git a/packages/ui-patterns/src/ExpandableVideo/index.tsx b/packages/ui-patterns/src/ExpandableVideo/index.tsxindex ae998b9b46d..d0682c1b17b 100644--- a/packages/ui-patterns/src/ExpandableVideo/index.tsx+++ b/packages/ui-patterns/src/ExpandableVideo/index.tsx@@ -33,21 +33,20 @@ export function ExpandableVideo({}, [isMobile])const CliccablePreview = () => (- <div className="video-container overflow-hidden rounded-sm hover:cursor-pointer">+ <div className="video-container overflow-hidden rounded-sm hover:cursor-pointer bg-alternative border"><divclassName="absolute inset-0 z-10text-whiteflex flex-col gap-3items-center justify-center- bg-alternativebefore:content['']before:absolutebefore:inset-0before:bg-black- before:opacity-30+ before:opacity-60before:-z-10- hover:before:opacity-50+ hover:before:opacity-80before:transition-opacity">@@ -60,7 +59,7 @@ export function ExpandableVideo({fillsizes="100%"priority={priority}- className="absolute inset-0 object-cover blur-xs scale-105"+ className="absolute inset-0 object-cover blur-md scale-105"/></div>)