Fixed pdf preview with turbo_stream

This commit is contained in:
2024-08-12 14:08:23 +02:00
parent a3373e0288
commit b467f9c86d

View File

@@ -6,8 +6,8 @@
</td>
<td class="p-3 text-sm text-center text-hsrm-gray">
<% if job.pdf.attached? %>
<%#= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
<%= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
<%= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
<%#= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
<% end %>
</td>
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">