From 6cdf2bf51f564d3bc6a2834f751cce839263da91 Mon Sep 17 00:00:00 2001 From: William Moore Date: Fri, 10 Feb 2023 14:25:29 +0000 Subject: [PATCH] Fix source link with text --- src/ImageItem.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ImageItem.jsx b/src/ImageItem.jsx index fca6aa8..9d6e127 100644 --- a/src/ImageItem.jsx +++ b/src/ImageItem.jsx @@ -89,11 +89,20 @@ export default function ImageItem({ source }) { {imgInfo?.dims?.[dim]} )); + let link_style = { + maxWidth: 150, + display: "block", + textOverflow: "ellipsis", + direction: "rtl", + whiteSpace: "nowrap", + overflow: "hidden" + } + return ( {imgInfo.version} - source + {source} {sizes}