<div class="attachment__asset">
  <div class="asset__thumbnail">
    <div><%= image_tag rails_storage_proxy_path(asset.file.representation(resize_to_limit: [320,320], format: :webp)) if asset.file.representable? %></div>
  </div>  
    
  <%= tag.div asset.title, class: 'asset__title' %>

  <%= tag.div [      
      asset.file.filename.extension_without_delimiter.upcase, 
      number_to_human_size(asset.file.byte_size).sub(/\s/, ''), 
      [asset.file.metadata.dig('width'), asset.file.metadata.dig('height')].compact.join('x')
    ].reject{ |v| v.blank? }.join(' '), 
    class: 'asset__mimetypes' %>
</div>  