]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6788
authorsoufiane <soufiane@cubedesigners.com>
Thu, 13 Jun 2024 08:32:15 +0000 (10:32 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 13 Jun 2024 08:32:15 +0000 (10:32 +0200)
resources/linkeditor/js/linkeditor.links.js

index 66a9d1a05dee16e699e96b45ea90ed7a1a68a21c..26fe1ea8856e05ef7ea127e2cad566176b81c117 100644 (file)
@@ -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']