From: soufiane Date: Thu, 13 Jun 2024 08:32:15 +0000 (+0200) Subject: wip #6788 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e0ed7974f8a462754510f7a59237c2c52b0bb158;p=fluidbook-toolbox.git wip #6788 --- diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 66a9d1a05..26fe1ea88 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -1700,13 +1700,9 @@ LinkeditorLinks.prototype = { let h = $('[fb-uid="'+link.uid+'"]').get(0).getBoundingClientRect().height; var fs = (h * (3 * Math.min(( 567 / pw), (709 / ph)))); - console.log(h) - - var hash = 'fb_' + window.MD5(link.image).toString().substring(0, 10) try { - console.log('fs',(fs / FONT_SIZE[hash]['capHeight'])) $("[data-id-preview=" + link.uid + "]").text(link.to).css({ 'font-size': (fs / FONT_SIZE[hash]['capHeight']).toFixed(2) + 'px', 'line-height': FONT_SIZE[hash]['capHeight']