From 13330e632812e851155fd79cf54baad8df772cbc Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 15 Jul 2026 14:53:32 +0200 Subject: [PATCH] fix(ui): expandable video preview image (#47964) ## What kind of change does this PR introduce? Restore preview image on ExpandableVideo trigger component. ## What is the current behavior? Screenshot 2026-07-15 at 14 08 58 Screenshot 2026-07-15 at 14 09 05 ## What is the new behavior? Screenshot 2026-07-15 at 14 08 53 Screenshot 2026-07-15 at 14 08 48 --- Also fixed a border-b issue on the PartnerCatalogDetail. ## Summary by CodeRabbit - **New Features** - Added thumbnail previews for partner catalog YouTube videos. - Improved video preview presentation with clearer overlays and stronger image blur. - **Bug Fixes** - Updated image loading support for YouTube thumbnail URLs. - Refined sticky tab header spacing and alignment while scrolling. --- .../catalog/[slug]/PartnerCatalogDetail.tsx | 69 ++++++++++--------- apps/www/lib/remotePatterns.js | 2 +- .../ui-patterns/src/ExpandableVideo/index.tsx | 9 ++- 3 files changed, 42 insertions(+), 38 deletions(-) diff --git a/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx b/apps/www/app/partners/catalog/[slug]/PartnerCatalogDetail.tsx index 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
- -
- {partner.title} -
- {partner.title} - {activeListing && ( - <> - — - - {activeListing.label} - - - )} + +
+ {partner.title} +
+ {partner.title} + {activeListing && ( + <> + — + + {activeListing.label} + + + )} +
-
- {installHref && ( - - )} - + {installHref && ( + + )} + +
@@ -331,6 +335,7 @@ function PartnerDetails({ {activeListing.youtubeId && ( diff --git a/apps/www/lib/remotePatterns.js b/apps/www/lib/remotePatterns.js index 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.tsx index 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 = () => ( -
+
@@ -60,7 +59,7 @@ export function ExpandableVideo({ fill sizes="100%" priority={priority} - className="absolute inset-0 object-cover blur-xs scale-105" + className="absolute inset-0 object-cover blur-md scale-105" />
)