fix: use processed preview image for art display
- Update image tag to display the processed preview image - Ensures better performance and visual consistency This change improves the rendering of art images by using processed versions, which may reduce load time and improve appearance on the front end.
This commit is contained in:
parent
ec96914067
commit
50183539f5
@ -3,7 +3,7 @@
|
|||||||
<div class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-300">
|
<div class="card bg-base-100 shadow-xl hover:shadow-2xl transition-shadow duration-300">
|
||||||
<figure class="relative aspect-[4/3] overflow-hidden">
|
<figure class="relative aspect-[4/3] overflow-hidden">
|
||||||
<% if art.image.attached? %>
|
<% if art.image.attached? %>
|
||||||
<%= image_tag art.image, class: "w-full h-full object-cover transform hover:scale-105 transition-transform duration-500" %>
|
<%= image_tag art.preview_image.processed, class: "w-full h-full object-cover transform hover:scale-105 transition-transform duration-500" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</figure>
|
</figure>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
Loading…
Reference in New Issue
Block a user