Skip to content

Commit

Permalink
fix(announce): don't increase attachment width (back to rails default)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Nov 13, 2023
1 parent 2a26ee1 commit a88c647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/active_storage/blobs/_blob.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
<% if blob.representable? %>
<%= image_tag blob.representation(resize_to_fit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
<%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
<% end %>

<figcaption class="attachment__caption">
Expand Down

0 comments on commit a88c647

Please sign in to comment.