aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/_pdfresource.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pdfresources/_pdfresource.html.erb')
-rw-r--r--app/views/pdfresources/_pdfresource.html.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/pdfresources/_pdfresource.html.erb b/app/views/pdfresources/_pdfresource.html.erb
index 8c96080..7ce1807 100644
--- a/app/views/pdfresources/_pdfresource.html.erb
+++ b/app/views/pdfresources/_pdfresource.html.erb
@@ -1,6 +1,7 @@
-<div id="<%= dom_id pdfresource %>" class="w-[400px] rounded overflow-hidden shadow-lg border p-5">
- <div>
- <%= image_tag url_for(pdfresource.thumbnails.first), size: "500x100", class: "rounded-t-lg" %>
+<div id="<%= dom_id pdfresource %>" class="h-full rounded overflow-hidden shadow-lg border p-5">
+
+ <div class="aspect-w-16 aspect-h-9 mb-4">
+ <%= image_tag url_for(pdfresource.thumbnails.first), class: "w-full h-full object-cover rounded-t-lg" %>
</div>
<p class="my-5">