From: soufiane Date: Mon, 12 Aug 2024 13:36:39 +0000 (+0200) Subject: wip #6961 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=11a186d4d2eb8e2ec4a8931f9369d3a5667000c0;p=fluidbook-toolbox.git wip #6961 --- diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 4ba9a7426..1ef764ca9 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -1767,12 +1767,10 @@ LinkeditorLinks.prototype = { let animWithBackground = animations.filter((v) => v.backgroundColor) let backgroundColor = animWithBackground.length > 0 ? animWithBackground[0].backgroundColor : null - console.log($link.find('.bg-preview')) - $link.find('.bg-preview').css('background-color',backgroundColor) - /*if(links[link].type === '15' || /\.(jpg|png|svg|webp|avif)$/.exec(links[link].image)) { - el = previewDiv.children().get(0) - }*/ + if(links[link].type === '39') { + previewDiv.addClass(links[link].to) + } this.linkeditor.linksAnimations.executeAnimations(el, animations) } diff --git a/resources/linkeditor/style/inc/_links.sass b/resources/linkeditor/style/inc/_links.sass index c6a5c7e1f..317f08750 100644 --- a/resources/linkeditor/style/inc/_links.sass +++ b/resources/linkeditor/style/inc/_links.sass @@ -28,6 +28,24 @@ [data-id-preview]:not(.link-text) overflow: hidden + [data-id-preview] + &.onlytext,&.text + .images + display: none + .texts + display: initial + &.image + .images + display: initial + .texts + display: none + &.both + .images,.texts + display: initial + + + + #linkeditor-main.dropfile &.dropfile border-style: dashed