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;