From b10ebf6e17e086bb8d1e2fd47dc014fe09f5594f Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 28 Oct 2025 19:44:34 -0400 Subject: [PATCH] add lazy loading for pub icon and bg images --- app/(home-pages)/discover/PubListing.tsx | 25 +++++++++++++++++------- components/ActionBar/Publications.tsx | 18 ++++++++--------- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/app/(home-pages)/discover/PubListing.tsx b/app/(home-pages)/discover/PubListing.tsx index be1ef53e..e3bc5224 100644 --- a/app/(home-pages)/discover/PubListing.tsx +++ b/app/(home-pages)/discover/PubListing.tsx @@ -31,19 +31,30 @@ export const PubListing = ( + {backgroundImage && ( + + )}
diff --git a/components/ActionBar/Publications.tsx b/components/ActionBar/Publications.tsx index 3be27318..fee908b7 100644 --- a/components/ActionBar/Publications.tsx +++ b/components/ActionBar/Publications.tsx @@ -102,15 +102,15 @@ export const PubIcon = (props: { let iconSizeClassName = `${props.small ? "w-4 h-4" : props.large ? "w-12 h-12" : "w-6 h-6"} rounded-full`; return props.record.icon ? ( -
+
+ {`${props.record.name} +
) : (