diff --git a/app/components/avo/fields/common/files/view_type/grid_item_component.html.erb b/app/components/avo/fields/common/files/view_type/grid_item_component.html.erb index 1bb2506f4d..2ab078af63 100644 --- a/app/components/avo/fields/common/files/view_type/grid_item_component.html.erb +++ b/app/components/avo/fields/common/files/view_type/grid_item_component.html.erb @@ -1,6 +1,6 @@
<% if file.present? %> -
+
<% if file.representable? && is_image? %> <%= image_tag helpers.main_app.url_for(file), class: "rounded-lg max-w-full #{@extra_classes}" %> <% elsif is_audio? %>