diff --git a/packages/mindplot/src/components/widget/LinkIconTooltip.js b/packages/mindplot/src/components/widget/LinkIconTooltip.js index a40b56fc..7e079263 100644 --- a/packages/mindplot/src/components/widget/LinkIconTooltip.js +++ b/packages/mindplot/src/components/widget/LinkIconTooltip.js @@ -41,44 +41,20 @@ class LinkIconTooltip extends FloatingTip { static _buildContent(linkIcon) { const url = linkIcon.getModel().getUrl(); const linkText = `${url}`; - const linkPreview = `https://free.pagepeeker.com/v2/thumbs.php?size=m&url=${url}`; const result = $('
').css({ padding: '5px', width: '100%', }); - - const text = $('
').text(linkText) - .css({ - 'white-space': 'pre-wrap', - 'word-wrap': 'break-word', - }); - result.append(text); - - const imgContainer = $('
') - .css({ - width: '100%', - textAlign: 'right', - 'padding-bottom': '5px', - 'padding-top': '5px', - }); - - const img = $('') - .prop('src', linkPreview) - .prop('img', url) - .prop('alt', url); - - img.css('padding', '5px'); - const link = $('').attr({ href: url, alt: 'Open in new window ...', target: '_blank', }); - link.append(img); - imgContainer.append(link); - result.append(imgContainer); + link.append(linkText); + result.append(link); + return result; } }