@crazycells said in CSS code customization for the link preview plugin:
does OGProxy show the pdf previews as well?
Not yet, but it could with a bit of additional code.
@pobojmoks that’s easily done by modifying the code provided here so that it targets background
rather than border
In essence, the below should work
$(document).ready(function() {
$(window).on('action:ajaxify.end', function(data) {
$('.recent-card-container').each(function(i) {
var dataId = $(this).attr("data-cid");
var color = $('[role="presentation"]', this).css("background-color");
console.log("data-cid " + dataId + " is " + color);
$('[data-cid="' + dataId + '"] .recent-card').attr("style", "background-color: " + color);
});
});
});