From 47002b067f958baa23a1a4bdfd5736e624d298fe Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Fri, 11 Jul 2025 11:44:48 -0600 Subject: [PATCH] Add path to image for datasets on the image card --- ui/src/components/DatasetImageCard.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/src/components/DatasetImageCard.tsx b/ui/src/components/DatasetImageCard.tsx index 6131f72c..762a44f6 100644 --- a/ui/src/components/DatasetImageCard.tsx +++ b/ui/src/components/DatasetImageCard.tsx @@ -160,7 +160,6 @@ const DatasetImageCard: React.FC = ({ )} {children &&
{children}
}
-
+ {inViewport && isVisible && ( +
+ {imageUrl} +
+ )} - - {/* Text area below the image */}
= ({ )} {(!inViewport || !isVisible) && isCaptionLoaded && (
- {isVisible ? "Scroll into view to edit caption" : "Show content to edit caption"} + {isVisible ? 'Scroll into view to edit caption' : 'Show content to edit caption'}
)} {!isCaptionLoaded && ( -
- Loading caption... -
+
Loading caption...
)}
); }; -export default DatasetImageCard; \ No newline at end of file +export default DatasetImageCard;