facetwp elementor cards elementor-has-item-ratio class

<?php
/** re-adds elementor-has-item-ratio afer refresh **/
add_action( 'wp_head', function() { ?>
  <script>
    (function($) {
        $(document).on('facetwp-loaded', function() {
            $('.facetwp-template .elementor-posts-container').addClass('elementor-has-item-ratio');
      });
    })(jQuery);
  </script>
<?php });