posts-from-tag/assets/pft-custom.js

22 lines
485 B
JavaScript
Raw Normal View History

2022-07-24 17:05:32 +02:00
( function( $ ) {
$( document ).ready(function( $ ) {
$(".pft-posts-main .pft-post.layout-one").each(function(){
var thumbHeight = $(this).find('.news-thumb img').height();
var infoHeight = $(this).find('.news-text-wrap').height();
if( thumbHeight != null && infoHeight != null && thumbHeight > infoHeight ){
$(this).find('.news-text-wrap').css( 'min-height', thumbHeight+'px');
}
});
});
} )( jQuery );