From b467f9c86d46a9f6d4da4d84558a606d01c09452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Mon, 12 Aug 2024 14:08:23 +0200 Subject: [PATCH] Fixed pdf preview with turbo_stream --- app/views/jobs/_job_tr.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb index e4e97cc..0602a37 100644 --- a/app/views/jobs/_job_tr.html.erb +++ b/app/views/jobs/_job_tr.html.erb @@ -6,8 +6,8 @@ <% 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 %>