Skip to content

Commit

Permalink
Fix source link with text
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 10, 2023
1 parent 42d431b commit 6cdf2bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ImageItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,20 @@ export default function ImageItem({ source }) {
<td key={dim}>{imgInfo?.dims?.[dim]}</td>
));

let link_style = {
maxWidth: 150,
display: "block",
textOverflow: "ellipsis",
direction: "rtl",
whiteSpace: "nowrap",
overflow: "hidden"
}

return (
<tr>
<td>{imgInfo.version}</td>
<td>
<a href="{source}">source</a>
<a title={source} style={link_style} href={source}>{source}</a>
<OpenWith source={source} />
</td>
{sizes}
Expand Down

0 comments on commit 6cdf2bf

Please sign in to comment.